pub enum ALPN {
H1,
H2,
H2H1,
Custom(CustomALPN),
}Expand description
The protocol for Application-Layer Protocol Negotiation
Variants§
H1
Prefer HTTP/1.1 only
H2
Prefer HTTP/2 only
H2H1
Prefer HTTP/2 over HTTP/1.1
Custom(CustomALPN)
Custom Protocol is stored in wire format (length-prefixed) Wire format is precomputed at creation to avoid dangling references
Implementations§
Trait Implementations§
Source§impl PartialOrd for ALPN
impl PartialOrd for ALPN
impl StructuralPartialEq for ALPN
Auto Trait Implementations§
impl Freeze for ALPN
impl RefUnwindSafe for ALPN
impl Send for ALPN
impl Sync for ALPN
impl Unpin for ALPN
impl UnsafeUnpin for ALPN
impl UnwindSafe for ALPN
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