Struct tiny_http::HTTPVersion
source · Expand description
HTTP version (usually 1.0 or 1.1).
Tuple Fields
0: u8
1: u8
Trait Implementations
sourceimpl Clone for HTTPVersion
impl Clone for HTTPVersion
sourcefn clone(&self) -> HTTPVersion
fn clone(&self) -> HTTPVersion
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for HTTPVersion
impl Debug for HTTPVersion
sourceimpl Display for HTTPVersion
impl Display for HTTPVersion
sourceimpl From<(u8, u8)> for HTTPVersion
impl From<(u8, u8)> for HTTPVersion
sourcefn from((major, minor): (u8, u8)) -> HTTPVersion
fn from((major, minor): (u8, u8)) -> HTTPVersion
Converts to this type from the input type.
sourceimpl Ord for HTTPVersion
impl Ord for HTTPVersion
sourcefn cmp(&self, other: &HTTPVersion) -> Ordering
fn cmp(&self, other: &HTTPVersion) -> Ordering
1.21.0 · sourcefn 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 · sourcefn 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
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<HTTPVersion> for (u8, u8)
impl PartialEq<HTTPVersion> for (u8, u8)
sourcefn eq(&self, other: &HTTPVersion) -> bool
fn eq(&self, other: &HTTPVersion) -> bool
sourceimpl PartialEq<HTTPVersion> for HTTPVersion
impl PartialEq<HTTPVersion> for HTTPVersion
sourcefn eq(&self, other: &HTTPVersion) -> bool
fn eq(&self, other: &HTTPVersion) -> bool
sourceimpl PartialOrd<(u8, u8)> for HTTPVersion
impl PartialOrd<(u8, u8)> for HTTPVersion
1.0.0 · sourcefn 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 moresourceimpl PartialOrd<HTTPVersion> for (u8, u8)
impl PartialOrd<HTTPVersion> for (u8, u8)
sourcefn partial_cmp(&self, other: &HTTPVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &HTTPVersion) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl PartialOrd<HTTPVersion> for HTTPVersion
impl PartialOrd<HTTPVersion> for HTTPVersion
sourcefn partial_cmp(&self, other: &HTTPVersion) -> Option<Ordering>
fn partial_cmp(&self, other: &HTTPVersion) -> Option<Ordering>
1.0.0 · sourcefn 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 moreimpl Eq for HTTPVersion
impl StructuralEq for HTTPVersion
impl StructuralPartialEq for HTTPVersion
Auto Trait Implementations
impl RefUnwindSafe for HTTPVersion
impl Send for HTTPVersion
impl Sync for HTTPVersion
impl Unpin for HTTPVersion
impl UnwindSafe for HTTPVersion
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more