Enum libp2p_core::nodes::handled_node::HandledNodeError
source · pub enum HandledNodeError<THandlerErr> {
Node(Error),
Handler(THandlerErr),
}Expand description
Error that can happen when polling a HandledNode.
Variants
Node(Error)
An error happend in the stream muxer.
Handler(THandlerErr)
An error happened in the handler of the connection to the node.
Trait Implementations
sourceimpl<THandlerErr: Debug> Debug for HandledNodeError<THandlerErr>
impl<THandlerErr: Debug> Debug for HandledNodeError<THandlerErr>
sourceimpl<THandlerErr> Display for HandledNodeError<THandlerErr>where
THandlerErr: Display,
impl<THandlerErr> Display for HandledNodeError<THandlerErr>where
THandlerErr: Display,
sourceimpl<THandlerErr> Error for HandledNodeError<THandlerErr>where
THandlerErr: Error + 'static,
impl<THandlerErr> Error for HandledNodeError<THandlerErr>where
THandlerErr: Error + 'static,
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl<THandlerErr> !RefUnwindSafe for HandledNodeError<THandlerErr>
impl<THandlerErr> Send for HandledNodeError<THandlerErr>where
THandlerErr: Send,
impl<THandlerErr> Sync for HandledNodeError<THandlerErr>where
THandlerErr: Sync,
impl<THandlerErr> Unpin for HandledNodeError<THandlerErr>where
THandlerErr: Unpin,
impl<THandlerErr> !UnwindSafe for HandledNodeError<THandlerErr>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more