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.
Tuple Fields of Upgrade
0: UpgradeError<TUpgrErr>
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
Performs the conversion.