Struct Version

pub struct Version(/* private field */);

Represents a version of the HTTP spec.

Implementations

impl Version

const HTTP_09: Version = _;

HTTP/0.9

const HTTP_10: Version = _;

HTTP/1.0

const HTTP_11: Version = _;

HTTP/1.1

const HTTP_2: Version = _;

HTTP/2.0

const HTTP_3: Version = _;

HTTP/3.0

Trait Implementations

impl Clone for Version

fn clone(&self) -> Version

impl Copy for Version

impl Debug for Version

fn fmt(&self, f: &mut Formatter<'_>) -> Result

impl Default for Version

fn default() -> Version

impl Eq for Version

impl Hash for Version

fn hash<__H: Hasher>(&self, state: &mut __H)

impl Ord for Version

fn cmp(&self, other: &Version) -> Ordering

impl PartialEq for Version

fn eq(&self, other: &Version) -> bool

impl PartialOrd for Version

fn partial_cmp(&self, other: &Version) -> Option<Ordering>

impl StructuralPartialEq for Version

Auto Trait Implementations

impl Freeze for Version

impl RefUnwindSafe for Version

impl Send for Version

impl Sync for Version

impl Unpin for Version

impl UnsafeUnpin for Version

impl UnwindSafe for Version

Blanket Implementations

impl<T> Any for Version where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Version where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Version where T: ?Sized,

fn borrow_mut(&mut self) -> &mut T

impl<T> CloneToUninit for Version where T: Clone,

unsafe fn clone_to_uninit(&self, dest: *mut u8)

impl<T> From<T> for Version

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Version where T: Clone,

type Owned = T;
fn to_owned(&self) -> T
fn clone_into(&self, target: &mut T)

impl<T, U> Into<U> for Version where U: From<T>,

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom<U> for Version where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Version where U: TryFrom<T>,

type Error = <U as TryFrom<T>>::Error;
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>