Enum libp2p_swarm::protocols_handler::ProtocolsHandlerUpgrErr [−][src]
pub enum ProtocolsHandlerUpgrErr<TUpgrErr> { Timeout, Timer, Upgrade(UpgradeError<TUpgrErr>), }
Expand description
Error that can happen on an outbound substream opening attempt.
Variants
The opening attempt timed out before the negotiation was fully completed.
There was an error in the timer used.
Upgrade(UpgradeError<TUpgrErr>)
Error while upgrading the substream to the protocol we want.
Implementations
pub fn map_upgrade_err<F, E>(self, f: F) -> ProtocolsHandlerUpgrErr<E> where
F: FnOnce(UpgradeError<TUpgrErr>) -> UpgradeError<E>,
pub fn map_upgrade_err<F, E>(self, f: F) -> ProtocolsHandlerUpgrErr<E> where
F: FnOnce(UpgradeError<TUpgrErr>) -> UpgradeError<E>,
Map the inner UpgradeError
type.
Trait Implementations
Auto Trait Implementations
impl<TUpgrErr> !RefUnwindSafe for ProtocolsHandlerUpgrErr<TUpgrErr>
impl<TUpgrErr> Send for ProtocolsHandlerUpgrErr<TUpgrErr> where
TUpgrErr: Send,
impl<TUpgrErr> Sync for ProtocolsHandlerUpgrErr<TUpgrErr> where
TUpgrErr: Sync,
impl<TUpgrErr> Unpin for ProtocolsHandlerUpgrErr<TUpgrErr> where
TUpgrErr: Unpin,
impl<TUpgrErr> !UnwindSafe for ProtocolsHandlerUpgrErr<TUpgrErr>