Enum libp2p::TransportError [−][src]
pub enum TransportError<TErr> {
MultiaddrNotSupported(Multiaddr),
Other(TErr),
}Variants
MultiaddrNotSupported(Multiaddr)The Multiaddr passed as parameter is not supported.
Contains back the same address.
Any other error that a Transport may produce.
Implementations
impl<TErr> TransportError<TErr>[src]
impl<TErr> TransportError<TErr>[src]pub fn map<TNewErr>(
self,
map: impl FnOnce(TErr) -> TNewErr
) -> TransportError<TNewErr>[src]
self,
map: impl FnOnce(TErr) -> TNewErr
) -> TransportError<TNewErr>
Applies a function to the the error in TransportError::Other.
Trait Implementations
impl<TErr> Clone for TransportError<TErr> where
TErr: Clone, [src]
impl<TErr> Clone for TransportError<TErr> where
TErr: Clone, [src]pub fn clone(&self) -> TransportError<TErr>[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<TErr> Debug for TransportError<TErr> where
TErr: Debug, [src]
impl<TErr> Debug for TransportError<TErr> where
TErr: Debug, [src]impl<TErr> Display for TransportError<TErr> where
TErr: Display, [src]
impl<TErr> Display for TransportError<TErr> where
TErr: Display, [src]Auto Trait Implementations
impl<TErr> RefUnwindSafe for TransportError<TErr> where
TErr: RefUnwindSafe,
TErr: RefUnwindSafe,
impl<TErr> Send for TransportError<TErr> where
TErr: Send,
TErr: Send,
impl<TErr> Sync for TransportError<TErr> where
TErr: Sync,
TErr: Sync,
impl<TErr> Unpin for TransportError<TErr> where
TErr: Unpin,
TErr: Unpin,
impl<TErr> UnwindSafe for TransportError<TErr> where
TErr: UnwindSafe,
TErr: UnwindSafe,