pub enum ProtocolsHandlerUpgrErr<TUpgrErr> {
Timeout,
Timer,
Upgrade(UpgradeError<TUpgrErr>),
}
Expand description
Error that can happen on an outbound substream opening attempt.
Variants
Timeout
The opening attempt timed out before the negotiation was fully completed.
Timer
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.