Enum uhttp_content_encoding::ContentEncoding [] [src]

pub enum ContentEncoding<'a> {
    Std(StdContentEncoding),
    Other(&'a str),
}

HTTP content encoding scheme.

Variants

Standard defined scheme.

Unknown/nonstandard scheme with the contained name.

This is guaranteed to have no surrounding whitespace and requires case-insensitive comparison to other strings.

Methods

impl<'a> ContentEncoding<'a>
[src]

Parse a new ContentEncoding from the given string.

Trait Implementations

impl<'a> Copy for ContentEncoding<'a>
[src]

impl<'a> Clone for ContentEncoding<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Eq for ContentEncoding<'a>
[src]

impl<'a> PartialEq for ContentEncoding<'a>
[src]

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

This method tests for !=.

impl<'a> Debug for ContentEncoding<'a>
[src]

Formats the value using the given formatter.

impl<'a> Hash for ContentEncoding<'a>
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more