pub enum HandshakeError {
NoCommonVersion {
host: Vec<u16>,
agent: Vec<u16>,
},
TokenMismatch,
FrameLimitTooSmall {
limit: u32,
},
VersionNotOffered {
version: u16,
offered: Vec<u16>,
},
Refused(Error),
}Expand description
Why a handshake failed.
Variants§
NoCommonVersion
The two sides share no protocol version.
TokenMismatch
The hello’s token is not the one the host started the agent with.
FrameLimitTooSmall
The negotiated maximum frame size is below MIN_MAX_FRAME.
VersionNotOffered
The host selected a version the agent does not speak.
Refused(Error)
The host refused the connection (seen by the agent).
Implementations§
Trait Implementations§
Source§impl Clone for HandshakeError
impl Clone for HandshakeError
Source§impl Debug for HandshakeError
impl Debug for HandshakeError
Source§impl Display for HandshakeError
impl Display for HandshakeError
impl Eq for HandshakeError
Source§impl Error for HandshakeError
impl Error for HandshakeError
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()
Source§impl PartialEq for HandshakeError
impl PartialEq for HandshakeError
impl StructuralPartialEq for HandshakeError
Auto Trait Implementations§
impl Freeze for HandshakeError
impl RefUnwindSafe for HandshakeError
impl Send for HandshakeError
impl Sync for HandshakeError
impl Unpin for HandshakeError
impl UnsafeUnpin for HandshakeError
impl UnwindSafe for HandshakeError
Blanket Implementations§
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