#[non_exhaustive]pub enum HTTPVersion {
Http10,
Http11,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for HTTPVersion
impl Clone for HTTPVersion
Source§fn clone(&self) -> HTTPVersion
fn clone(&self) -> HTTPVersion
Returns a duplicate 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 Display for HTTPVersion
impl Display for HTTPVersion
Source§impl<'a> FromValue<'a> for HTTPVersion
impl<'a> FromValue<'a> for HTTPVersion
Source§type Checker = GenericValueTypeChecker<HTTPVersion>
type Checker = GenericValueTypeChecker<HTTPVersion>
Value type checker.
Source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moreSource§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 for HTTPVersion
impl PartialEq for HTTPVersion
Source§impl PartialOrd for HTTPVersion
impl PartialOrd for HTTPVersion
Source§impl StaticType for HTTPVersion
impl StaticType for HTTPVersion
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.Source§impl ToValue for HTTPVersion
impl ToValue for HTTPVersion
Source§impl ValueType for HTTPVersion
impl ValueType for HTTPVersion
Source§type Type = HTTPVersion
type Type = HTTPVersion
Type to get the
Type
from. Read moreimpl Copy for HTTPVersion
impl Eq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.