pub struct MaxForwards(pub u32);
Tuple Fields§
§0: u32
Trait Implementations§
Source§impl Clone for MaxForwards
impl Clone for MaxForwards
Source§fn clone(&self) -> MaxForwards
fn clone(&self) -> MaxForwards
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 MaxForwards
impl Debug for MaxForwards
Source§impl Display for MaxForwards
impl Display for MaxForwards
Source§impl Hash for MaxForwards
impl Hash for MaxForwards
Source§impl Into<u32> for MaxForwards
impl Into<u32> for MaxForwards
Source§impl Ord for MaxForwards
impl Ord for MaxForwards
Source§fn cmp(&self, other: &MaxForwards) -> Ordering
fn cmp(&self, other: &MaxForwards) -> 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 ParseHeader for MaxForwards
impl ParseHeader for MaxForwards
fn header_name() -> &'static [&'static str]
fn decode<'a>( headers: impl IntoIterator<Item = &'a HeaderValue>, ) -> Option<Self>
Source§impl PartialEq for MaxForwards
impl PartialEq for MaxForwards
Source§impl PartialOrd for MaxForwards
impl PartialOrd for MaxForwards
impl Copy for MaxForwards
impl Eq for MaxForwards
impl StructuralPartialEq for MaxForwards
Auto Trait Implementations§
impl Freeze for MaxForwards
impl RefUnwindSafe for MaxForwards
impl Send for MaxForwards
impl Sync for MaxForwards
impl Unpin for MaxForwards
impl UnwindSafe for MaxForwards
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more