pub enum HttpVersion {
Http10,
Http11,
Http20,
}
Expand description
HTTP version
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 Debug for HttpVersion
impl Debug for HttpVersion
Source§impl<'de> Deserialize<'de> for HttpVersion
impl<'de> Deserialize<'de> for HttpVersion
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for HttpVersion
impl Display for HttpVersion
Source§impl From<HttpVersion> for String
impl From<HttpVersion> for String
Source§fn from(value: HttpVersion) -> Self
fn from(value: HttpVersion) -> Self
Converts to this type from the input type.
Source§impl FromStr for HttpVersion
impl FromStr for HttpVersion
Source§impl PartialEq for HttpVersion
impl PartialEq for HttpVersion
Source§impl Serialize for HttpVersion
impl Serialize for HttpVersion
Source§impl TryFrom<StringOrNum> for HttpVersion
impl TryFrom<StringOrNum> for HttpVersion
Source§impl TryFrom<u32> for HttpVersion
impl TryFrom<u32> 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 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