enum Negotiated<'a> {
Agreed(&'static str),
Unsupported(&'a str),
Malformed,
}Expand description
What the client’s requested version resolved to. Kept distinct from the
answered string because an unsupported version and a missing one are
different events: protocolVersion is required, so the latter is a broken
client rather than a negotiation outcome.
Variants§
Agreed(&'static str)
A version we speak.
Unsupported(&'a str)
A version string we do not speak.
Malformed
Absent, or present but not a string.
Trait Implementations§
Source§impl<'a> Debug for Negotiated<'a>
impl<'a> Debug for Negotiated<'a>
impl<'a> Eq for Negotiated<'a>
Source§impl<'a> PartialEq for Negotiated<'a>
impl<'a> PartialEq for Negotiated<'a>
impl<'a> StructuralPartialEq for Negotiated<'a>
Auto Trait Implementations§
impl<'a> Freeze for Negotiated<'a>
impl<'a> RefUnwindSafe for Negotiated<'a>
impl<'a> Send for Negotiated<'a>
impl<'a> Sync for Negotiated<'a>
impl<'a> Unpin for Negotiated<'a>
impl<'a> UnsafeUnpin for Negotiated<'a>
impl<'a> UnwindSafe for Negotiated<'a>
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.