pub struct ContentLength(/* private fields */);Expand description
Content-Length header (RFC 7826 section 18.17).
Trait Implementations§
Source§impl AsMut<u64> for ContentLength
impl AsMut<u64> for ContentLength
Source§impl AsRef<u64> for ContentLength
impl AsRef<u64> for ContentLength
Source§impl Clone for ContentLength
impl Clone for ContentLength
Source§fn clone(&self) -> ContentLength
fn clone(&self) -> ContentLength
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 moreimpl Copy for ContentLength
Source§impl Debug for ContentLength
impl Debug for ContentLength
Source§impl Deref for ContentLength
impl Deref for ContentLength
Source§impl DerefMut for ContentLength
impl DerefMut for ContentLength
impl Eq for ContentLength
Source§impl From<ContentLength> for u64
impl From<ContentLength> for u64
Source§fn from(v: ContentLength) -> u64
fn from(v: ContentLength) -> u64
Converts to this type from the input type.
Source§impl From<u64> for ContentLength
impl From<u64> for ContentLength
Source§fn from(v: u64) -> ContentLength
fn from(v: u64) -> ContentLength
Converts to this type from the input type.
Source§impl Ord for ContentLength
impl Ord for ContentLength
Source§fn cmp(&self, other: &ContentLength) -> Ordering
fn cmp(&self, other: &ContentLength) -> Ordering
1.21.0 (const: unstable) · 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 ContentLength
impl PartialEq for ContentLength
Source§fn eq(&self, other: &ContentLength) -> bool
fn eq(&self, other: &ContentLength) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for ContentLength
impl PartialOrd for ContentLength
impl StructuralPartialEq for ContentLength
Source§impl TypedHeader for ContentLength
impl TypedHeader for ContentLength
Source§fn from_headers(
headers: impl AsRef<Headers>,
) -> Result<Option<Self>, HeaderParseError>
fn from_headers( headers: impl AsRef<Headers>, ) -> Result<Option<Self>, HeaderParseError>
Parses the header from headers.
Source§fn insert_into(&self, headers: impl AsMut<Headers>)
fn insert_into(&self, headers: impl AsMut<Headers>)
Inserts the header into headers.
Auto Trait Implementations§
impl Freeze for ContentLength
impl RefUnwindSafe for ContentLength
impl Send for ContentLength
impl Sync for ContentLength
impl Unpin for ContentLength
impl UnsafeUnpin for ContentLength
impl UnwindSafe for ContentLength
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