pub enum ProtocolsHandlerUpgrErr<TUpgrErr> {
Timeout,
Timer,
MuxerDeniedSubstream,
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.
MuxerDeniedSubstream
The remote muxer denied the attempt to open a substream.
Upgrade(UpgradeError<TUpgrErr>)
Error while upgrading the substream to the protocol we want.
Trait Implementations
sourceimpl<TUpgrErr: Debug> Debug for ProtocolsHandlerUpgrErr<TUpgrErr>
impl<TUpgrErr: Debug> Debug for ProtocolsHandlerUpgrErr<TUpgrErr>
sourceimpl<TUpgrErr> Display for ProtocolsHandlerUpgrErr<TUpgrErr>where
TUpgrErr: Display,
impl<TUpgrErr> Display for ProtocolsHandlerUpgrErr<TUpgrErr>where
TUpgrErr: Display,
sourceimpl<TUpgrErr> Error for ProtocolsHandlerUpgrErr<TUpgrErr>where
TUpgrErr: Error + 'static,
impl<TUpgrErr> Error for ProtocolsHandlerUpgrErr<TUpgrErr>where
TUpgrErr: Error + 'static,
sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
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>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more