Struct hyper::header::common::content_length::ContentLength [-]  [+] [src]

pub struct ContentLength(pub u64);

The Content-Length header.

Simply a wrapper around a usize.

Trait Implementations

impl Deref for ContentLength

type Target = u64

fn deref<'a>(&'a self) -> &'a u64

impl DerefMut for ContentLength

fn deref_mut<'a>(&'a mut self) -> &'a mut u64

impl Header for ContentLength

fn header_name(_: Option<ContentLength>) -> &'static str

fn parse_header(raw: &[Vec<u8>]) -> Option<ContentLength>

impl HeaderFormat for ContentLength

fn fmt_header(&self, fmt: &mut Formatter) -> Result

Derived Implementations

impl Show for ContentLength

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialEq for ContentLength

fn eq(&self, __arg_0: &ContentLength) -> bool

fn ne(&self, __arg_0: &ContentLength) -> bool

impl Clone for ContentLength

fn clone(&self) -> ContentLength

fn clone_from(&mut self, source: &Self)

impl Copy for ContentLength