pub enum PrefaceVerdict {
H2,
Http1,
NeedMore,
}Expand description
What the first bytes of a cleartext connection say about its protocol.
Variants§
H2
The full 24-byte HTTP/2 preface: serve the connection as HTTP/2.
Http1
A byte diverged from the preface: serve the connection as HTTP/1.x.
NeedMore
Every byte so far matches the preface, but fewer than 24 arrived.
Trait Implementations§
Source§impl Clone for PrefaceVerdict
impl Clone for PrefaceVerdict
impl Copy for PrefaceVerdict
Source§impl Debug for PrefaceVerdict
impl Debug for PrefaceVerdict
impl Eq for PrefaceVerdict
Source§impl PartialEq for PrefaceVerdict
impl PartialEq for PrefaceVerdict
impl StructuralPartialEq for PrefaceVerdict
Auto Trait Implementations§
impl Freeze for PrefaceVerdict
impl RefUnwindSafe for PrefaceVerdict
impl Send for PrefaceVerdict
impl Sync for PrefaceVerdict
impl Unpin for PrefaceVerdict
impl UnsafeUnpin for PrefaceVerdict
impl UnwindSafe for PrefaceVerdict
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§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
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.