Enum hyper::header::Encoding [] [src]

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

A value to represent an encoding used in Transfer-Encoding or Accept-Encoding header.

Variants

Chunked

The chunked encoding.

Gzip

The gzip encoding.

Deflate

The deflate encoding.

Compress

The compress encoding.

Identity

The identity encoding.

EncodingExt

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

Trait Implementations

impl Display for Encoding

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

impl FromStr for Encoding

type Err = Error

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

Derived Implementations

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

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