Enum libp2p_core::connection::ConnectionError
source · [−]pub enum ConnectionError<THandlerErr> {
IO(Error),
Handler(THandlerErr),
}
Expand description
Errors that can occur in the context of an established Connection
.
Variants
IO(Error)
An I/O error occurred on the connection.
Handler(THandlerErr)
The connection handler produced an error.
Trait Implementations
sourceimpl<THandlerErr: Debug> Debug for ConnectionError<THandlerErr>
impl<THandlerErr: Debug> Debug for ConnectionError<THandlerErr>
sourceimpl<THandlerErr> Display for ConnectionError<THandlerErr> where
THandlerErr: Display,
impl<THandlerErr> Display for ConnectionError<THandlerErr> where
THandlerErr: Display,
sourceimpl<THandlerErr> Error for ConnectionError<THandlerErr> where
THandlerErr: Error + 'static,
impl<THandlerErr> Error for ConnectionError<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
sourcefn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. 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 ConnectionError<THandlerErr> where
THandlerErr: RefUnwindSafe,
impl<THandlerErr> Send for ConnectionError<THandlerErr> where
THandlerErr: Send,
impl<THandlerErr> Sync for ConnectionError<THandlerErr> where
THandlerErr: Sync,
impl<THandlerErr> Unpin for ConnectionError<THandlerErr> where
THandlerErr: Unpin,
impl<THandlerErr> UnwindSafe for ConnectionError<THandlerErr> where
THandlerErr: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more