Enum actix_web::http::ContentEncoding[][src]

pub enum ContentEncoding {
    Auto,
    Br,
    Deflate,
    Gzip,
    Identity,
}
[]

Represents supported types of content encodings

Variants

[]

Automatically select encoding based on encoding negotiation

[]

A format using the Brotli algorithm

[]

A format using the zlib structure with deflate algorithm

[]

Gzip algorithm

[]

Indicates the identity function (i.e. no compression, nor modification)

Methods

impl ContentEncoding
[src]
[]

[]

Is the content compressed?

[]

Convert content encoding to string

[]

default quality value

Trait Implementations

impl Copy for ContentEncoding
[src]

impl Clone for ContentEncoding
[src]
[+]

[]

Returns a copy of the value. Read more

[]

Performs copy-assignment from source. Read more

impl PartialEq for ContentEncoding
[src]
[+]

[]

This method tests for self and other values to be equal, and is used by ==. Read more

[]

This method tests for !=.

impl Debug for ContentEncoding
[src]
[+]

[]

Formats the value using the given formatter. Read more

impl<'a> From<&'a str> for ContentEncoding
[src]
[+]

[]

Performs the conversion.

Auto Trait Implementations

impl Send for ContentEncoding

impl Sync for ContentEncoding