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

pub struct ContentLength(pub u64);

The Content-Length header.

Simply a wrapper around a u64.

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() -> &'static str

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

impl HeaderFormat for ContentLength

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

impl Display for ContentLength

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

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() -> &'static str

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

impl HeaderFormat for ContentLength

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

impl Display for ContentLength

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

Derived Implementations

impl Debug 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

impl Debug 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