pub enum HelloError {
NotHello,
BadName,
MissingVersion,
BadVersion,
UnsupportedVersion(u32),
}Expand description
Why a line was not a usable HELLO.
Variants§
NotHello
Not a handshake at all — treat the connection as a raw stream.
BadName
A handshake with an unusable name.
MissingVersion
A HELLO with no version field at all. Nothing is deployed yet, so
this ambiguity is cheapest to close now rather than silently
assuming version 1.
BadVersion
A version field that isn’t a bare non-negative integer.
UnsupportedVersion(u32)
A well-formed version this console does not speak.
Implementations§
Trait Implementations§
Source§impl Clone for HelloError
impl Clone for HelloError
Source§fn clone(&self) -> HelloError
fn clone(&self) -> HelloError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HelloError
impl Debug for HelloError
impl Eq for HelloError
Source§impl PartialEq for HelloError
impl PartialEq for HelloError
impl StructuralPartialEq for HelloError
Auto Trait Implementations§
impl Freeze for HelloError
impl RefUnwindSafe for HelloError
impl Send for HelloError
impl Sync for HelloError
impl Unpin for HelloError
impl UnsafeUnpin for HelloError
impl UnwindSafe for HelloError
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