Enum libp2p::core::transport::timeout::TransportTimeoutError [−][src]
pub enum TransportTimeoutError<TErr> { Timeout, TimerError(Error), Other(TErr), }
Expand description
Error that can be produced by the TransportTimeout
layer.
Variants
The transport timed out.
TimerError(Error)
An error happened in the timer.
Other kind of error.
Trait Implementations
Auto Trait Implementations
impl<TErr> !RefUnwindSafe for TransportTimeoutError<TErr>
impl<TErr> Send for TransportTimeoutError<TErr> where
TErr: Send,
impl<TErr> Sync for TransportTimeoutError<TErr> where
TErr: Sync,
impl<TErr> Unpin for TransportTimeoutError<TErr> where
TErr: Unpin,
impl<TErr> !UnwindSafe for TransportTimeoutError<TErr>
Blanket Implementations
pub fn as_fail(&self) -> &(dyn Fail + 'static)
pub fn as_fail(&self) -> &(dyn Fail + 'static)
Converts a reference to Self
into a dynamic trait object of Fail
.
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V