#[repr(u32)]pub enum HttpVersion {
Http09 = 0,
Http10 = 1,
Http11 = 2,
H2 = 3,
H3 = 4,
}Variants§
Implementations§
Trait Implementations§
Source§impl Clone for HttpVersion
impl Clone for HttpVersion
impl Copy for HttpVersion
impl Eq for HttpVersion
Source§impl From<HttpVersion> for Version
impl From<HttpVersion> for Version
Source§fn from(v: HttpVersion) -> Self
fn from(v: HttpVersion) -> Self
Converts to this type from the input type.
Source§impl From<Version> for HttpVersion
impl From<Version> for HttpVersion
Source§impl Hash for HttpVersion
impl Hash for HttpVersion
Source§impl Ord for HttpVersion
impl Ord for HttpVersion
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for HttpVersion
impl PartialEq for HttpVersion
Source§impl PartialOrd for HttpVersion
impl PartialOrd for HttpVersion
impl StructuralPartialEq for HttpVersion
Auto Trait Implementations§
impl Freeze for HttpVersion
impl RefUnwindSafe for HttpVersion
impl Send for HttpVersion
impl Sync for HttpVersion
impl Unpin for HttpVersion
impl UnsafeUnpin for HttpVersion
impl UnwindSafe for HttpVersion
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