Enum libp2p::core::UpgradeError [−][src]
pub enum UpgradeError<E> {
Select(NegotiationError),
Apply(E),
}Error that can happen when upgrading a connection or substream to use a protocol.
Variants
Select(NegotiationError)Error during the negotiation process.
Error during the post-negotiation handshake.
Implementations
impl<E> UpgradeError<E>[src]
impl<E> UpgradeError<E>[src]pub fn map_err<F, T>(self, f: F) -> UpgradeError<T> where
F: FnOnce(E) -> T, [src]
F: FnOnce(E) -> T,
pub fn into_err<T>(self) -> UpgradeError<T> where
T: From<E>, [src]
T: From<E>,
Trait Implementations
impl<E> Debug for UpgradeError<E> where
E: Debug, [src]
impl<E> Debug for UpgradeError<E> where
E: Debug, [src]impl<E> Display for UpgradeError<E> where
E: Display, [src]
impl<E> Display for UpgradeError<E> where
E: Display, [src]impl<E> Error for UpgradeError<E> where
E: Error + 'static, [src]
impl<E> Error for UpgradeError<E> where
E: Error + 'static, [src]impl<E> From<NegotiationError> for UpgradeError<E>[src]
impl<E> From<NegotiationError> for UpgradeError<E>[src]pub fn from(e: NegotiationError) -> UpgradeError<E>[src]
Auto Trait Implementations
impl<E> !RefUnwindSafe for UpgradeError<E>
impl<E> Send for UpgradeError<E> where
E: Send,
E: Send,
impl<E> Sync for UpgradeError<E> where
E: Sync,
E: Sync,
impl<E> Unpin for UpgradeError<E> where
E: Unpin,
E: Unpin,