Enum hyper::header::common::transfer_encoding::Encoding [-]  [+] [src]

pub enum Encoding {
    Chunked,
    Gzip,
    Deflate,
    Compress,
    EncodingExt(String),
}

A value to be used with the Transfer-Encoding header.

Example:

headers.set(TransferEncoding(vec![Gzip, Chunked]));

Variants

Chunked

The chunked encoding.

Gzip

The gzip encoding.

Deflate

The deflate encoding.

Compress

The compress encoding.

EncodingExt

Some other encoding that is less common, can be any String.

Trait Implementations

impl String for Encoding

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

impl FromStr for Encoding

fn from_str(s: &str) -> Option<Encoding>

Derived Implementations

impl Show for Encoding

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

impl PartialEq for Encoding

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

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

impl Clone for Encoding

fn clone(&self) -> Encoding

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