Enum fastly_shared::HttpVersion
source · #[repr(u32)]
pub enum HttpVersion {
Http09,
Http10,
Http11,
H2,
H3,
}
Variants§
Implementations§
Trait Implementations§
source§impl Clone for HttpVersion
impl Clone for HttpVersion
source§fn clone(&self) -> HttpVersion
fn clone(&self) -> HttpVersion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§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
source§fn cmp(&self, other: &HttpVersion) -> Ordering
fn cmp(&self, other: &HttpVersion) -> Ordering
1.21.0 · 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
source§impl PartialEq<HttpVersion> for HttpVersion
impl PartialEq<HttpVersion> for HttpVersion
source§fn eq(&self, other: &HttpVersion) -> bool
fn eq(&self, other: &HttpVersion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<HttpVersion> for HttpVersion
impl PartialOrd<HttpVersion> for HttpVersion
source§fn partial_cmp(&self, other: &HttpVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &HttpVersion) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more