pub struct MaxForwards(pub u8);Expand description
The Max-Forwards header (RFC 3261 §20.22).
Tuple Fields§
§0: u8Trait 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 (const: unstable) · 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 PartialEq for MaxForwards
impl PartialEq for MaxForwards
Source§fn eq(&self, other: &MaxForwards) -> bool
fn eq(&self, other: &MaxForwards) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TypedHeader for MaxForwards
impl TypedHeader for MaxForwards
Source§const NAME: HeaderName = HeaderName::MaxForwards
const NAME: HeaderName = HeaderName::MaxForwards
The header this type reads.
Source§fn decode(value: &[u8]) -> Result<Self, HeaderError>
fn decode(value: &[u8]) -> Result<Self, HeaderError>
Parse one header value. The value arrives unfolded and trimmed.
Source§const VALIDATE_LIST: bool = false
const VALIDATE_LIST: bool = false
Whether
Headers::typed_all must collect and validate the complete field before yielding. Read moreSource§fn decode_list(value: &[u8]) -> Result<Vec<Self>, HeaderError>
fn decode_list(value: &[u8]) -> Result<Vec<Self>, HeaderError>
Parse every value in one header row. Read more
Source§fn validate_list(_values: &[&Self]) -> Result<(), HeaderError>
fn validate_list(_values: &[&Self]) -> Result<(), HeaderError>
Validate all decoded values of this field across the complete message. Read more
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 UnsafeUnpin 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