pub enum Error {
Show 14 variants
Claim {
path: Path,
source: Box<Error>,
meta: Meta,
},
Connect {
peer: EndpointId,
source: Box<Error>,
meta: Meta,
},
Subscribe {
path: Path,
source: Box<Error>,
meta: Meta,
},
Timeout {
path: Path,
timeout: Duration,
meta: Meta,
},
PullDenied {
path: Path,
meta: Meta,
},
PullLimit {
limit: usize,
meta: Meta,
},
ClientPullLimit {
limit: usize,
meta: Meta,
},
DialRateLimit {
meta: Meta,
},
Dropped {
meta: Meta,
},
NoDataDir {
meta: Meta,
},
Identity {
path: PathBuf,
source: Arc<Error>,
meta: Meta,
},
Bind {
source: Arc<EndpointError>,
meta: Meta,
},
Keys {
path: PathBuf,
source: Arc<Error>,
meta: Meta,
},
Relay {
source: Arc<AnyError>,
meta: Meta,
},
}Expand description
An error from running the media relay, pulling a broadcast, or loading a key.
It is cheap to clone, so every session that waits on one pull gets the
same failure. The node’s errors sit in a Box, since they are large.
Variants§
Claim
The ticket’s peer may not publish the ticket’s path.
The peer does not own the path, already holds too many claims, or the media relay’s node has shut down.
Connect
The media relay could not reach the ticket’s publisher.
Subscribe
The publisher’s session did not resolve the ticket’s path.
Timeout
The publisher did not announce the path in time.
PullDenied
The session may not pull: it has no token that grants reading the ticket’s path.
See Access.
PullLimit
The media relay already holds as many pulls as its limits allow.
ClientPullLimit
The client already holds as many pulls as its limits allow.
DialRateLimit
The client started too many new pulls too recently.
Dropped
The pull ended before its dial reported an outcome.
NoDataDir
The platform has no data directory to keep the media relay’s identity in.
Identity
The media relay’s identity could not be loaded or stored.
Bind
The media relay’s iroh endpoint could not bind.
Keys
The JWT keys could not be read.
Relay
The media relay failed to start or stopped with an error.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl StackError for Error
impl StackError for Error
Source§fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
fn as_std(&self) -> &(dyn Error + Send + Sync + 'static)
Source§fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
fn into_std(self: Box<Self>) -> Box<dyn Error + Send + Sync>
Source§fn as_dyn(&self) -> &dyn StackError
fn as_dyn(&self) -> &dyn StackError
dyn StackError.Source§fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
fn fmt_message(&self, f: &mut Formatter<'_>) -> Result
Source§fn is_transparent(&self) -> bool
fn is_transparent(&self) -> bool
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more