pub enum NetworkError {
Show 15 variants
NoPeersAvailable,
EncodeError(String),
Libp2pError(String),
TokioError(String),
TopicNotFound(String),
UnsupportedTaskType(String),
ActorError(ActorError),
CoreError(Error),
GraphError(Error),
IoError(Error),
MemError(MemoryError),
MusicError(MusicError),
JsonError(Error),
Other(Error),
Unknown(String),
}
Variants§
NoPeersAvailable
EncodeError(String)
Libp2pError(String)
TokioError(String)
TopicNotFound(String)
UnsupportedTaskType(String)
ActorError(ActorError)
CoreError(Error)
GraphError(Error)
IoError(Error)
MemError(MemoryError)
MusicError(MusicError)
JsonError(Error)
Other(Error)
Unknown(String)
Trait Implementations§
Source§impl Debug for NetworkError
impl Debug for NetworkError
Source§impl Display for NetworkError
impl Display for NetworkError
Source§impl Error for NetworkError
impl Error for NetworkError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<&str> for NetworkError
impl From<&str> for NetworkError
Source§impl From<ActorError> for NetworkError
impl From<ActorError> for NetworkError
Source§fn from(source: ActorError) -> Self
fn from(source: ActorError) -> Self
Converts to this type from the input type.
Source§impl From<BehaviourError> for NetworkError
impl From<BehaviourError> for NetworkError
Source§fn from(e: BehaviourBuilderError) -> Self
fn from(e: BehaviourBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<ConfigBuilderError> for NetworkError
impl From<ConfigBuilderError> for NetworkError
Source§fn from(e: ConfigBuilderError) -> Self
fn from(e: ConfigBuilderError) -> Self
Converts to this type from the input type.
Source§impl From<DialError> for NetworkError
impl From<DialError> for NetworkError
Source§impl From<Elapsed> for NetworkError
impl From<Elapsed> for NetworkError
Source§impl From<Error> for NetworkError
impl From<Error> for NetworkError
Source§impl From<Error> for NetworkError
impl From<Error> for NetworkError
Source§impl From<Error> for NetworkError
impl From<Error> for NetworkError
Source§impl From<Error> for NetworkError
impl From<Error> for NetworkError
Source§impl From<Error> for NetworkError
impl From<Error> for NetworkError
Source§impl From<Error> for NetworkError
impl From<Error> for NetworkError
Source§impl From<JoinError> for NetworkError
impl From<JoinError> for NetworkError
Source§impl From<MemoryError> for NetworkError
impl From<MemoryError> for NetworkError
Source§fn from(source: MemoryError) -> Self
fn from(source: MemoryError) -> Self
Converts to this type from the input type.
Source§impl From<MusicError> for NetworkError
impl From<MusicError> for NetworkError
Source§fn from(source: MusicError) -> Self
fn from(source: MusicError) -> Self
Converts to this type from the input type.
Source§impl From<OtherVariantError> for NetworkError
impl From<OtherVariantError> for NetworkError
Source§fn from(e: OtherVariantError) -> Self
fn from(e: OtherVariantError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for NetworkError
impl From<ParseError> for NetworkError
Source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<PublishError> for NetworkError
impl From<PublishError> for NetworkError
Source§fn from(e: PublishError) -> Self
fn from(e: PublishError) -> Self
Converts to this type from the input type.
Source§impl From<RecvError> for NetworkError
impl From<RecvError> for NetworkError
Source§impl<T> From<SendError<T>> for NetworkError
impl<T> From<SendError<T>> for NetworkError
Source§impl From<SigningError> for NetworkError
impl From<SigningError> for NetworkError
Source§fn from(e: SigningError) -> Self
fn from(e: SigningError) -> Self
Converts to this type from the input type.
Source§impl From<String> for NetworkError
impl From<String> for NetworkError
Source§impl From<TryRecvError> for NetworkError
impl From<TryRecvError> for NetworkError
Source§fn from(e: TryRecvError) -> Self
fn from(e: TryRecvError) -> Self
Converts to this type from the input type.
Source§impl<T> From<TrySendError<T>> for NetworkError
impl<T> From<TrySendError<T>> for NetworkError
Source§fn from(e: TrySendError<T>) -> Self
fn from(e: TrySendError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NetworkError
impl !RefUnwindSafe for NetworkError
impl Send for NetworkError
impl Sync for NetworkError
impl Unpin for NetworkError
impl !UnwindSafe for NetworkError
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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