pub enum ProtocolVersionError {
NoCompatibleVersion,
VersionTooOld(Version, Version),
NoAlpnData,
InvalidAlpnData,
ProtocolMismatch,
ProtocolNotSupportedByServer,
}Expand description
Errors that can occur during protocol version negotiation
Variants§
NoCompatibleVersion
VersionTooOld(Version, Version)
NoAlpnData
InvalidAlpnData
ProtocolMismatch
ProtocolNotSupportedByServer
Trait Implementations§
Source§impl Debug for ProtocolVersionError
impl Debug for ProtocolVersionError
Source§impl Display for ProtocolVersionError
impl Display for ProtocolVersionError
Source§impl Error for ProtocolVersionError
impl Error for ProtocolVersionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ProtocolVersionError
impl RefUnwindSafe for ProtocolVersionError
impl Send for ProtocolVersionError
impl Sync for ProtocolVersionError
impl Unpin for ProtocolVersionError
impl UnwindSafe for ProtocolVersionError
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more