pub enum HelloError {
NotHello,
BadName,
MissingVersion,
BadVersion,
UnsupportedVersion(u32),
MissingStreamKind,
UnknownStreamKind(String),
}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.
MissingStreamKind
The old two-field HELLO <version> <name> form: there is no way to
tell whether the missing field was meant to be a kind or a name, and
guessing is exactly the ambiguity this error avoids.
UnknownStreamKind(String)
A well-formed kind field that isn’t tokens or trace.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.