Struct rtsp_types::headers::content_length::ContentLength
source · pub struct ContentLength(/* private fields */);
Expand description
Content-Length
header (RFC 7826 section 18.17).
Methods from Deref<Target = u64>§
pub const MIN: u64 = 0u64
pub const MAX: u64 = 18_446_744_073_709_551_615u64
pub const BITS: u32 = 64u32
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 copy 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 ContentLength
impl Debug for ContentLength
source§impl Deref for ContentLength
impl Deref for ContentLength
source§impl DerefMut for ContentLength
impl DerefMut 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 · 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
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ContentLength
impl PartialOrd for ContentLength
source§fn partial_cmp(&self, other: &ContentLength) -> Option<Ordering>
fn partial_cmp(&self, other: &ContentLength) -> Option<Ordering>
1.0.0 · source§fn 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 moresource§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.
impl Copy for ContentLength
impl Eq for ContentLength
impl StructuralPartialEq for ContentLength
Auto Trait Implementations§
impl RefUnwindSafe for ContentLength
impl Send for ContentLength
impl Sync for ContentLength
impl Unpin 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