Enum hyper::header::Preference [] [src]

pub enum Preference {
    RespondAsync,
    ReturnRepresentation,
    ReturnMinimal,
    HandlingStrict,
    HandlingLenient,
    Wait(u32),
    Extension(StringStringVec<(String, String)>),
}
[]

Prefer contains a list of these preferences.

Variants

[]

"respond-async"

[]

"return=representation"

[]

"return=minimal"

[]

"handling=strict"

[]

"handling=lenient"

[]

"wait=delta"

[]

Extension preferences. Always has a value, if none is specified it is just "". A preference can also have a list of parameters.

Trait Implementations

impl PartialEq for Preference
[src]

[src]
[]

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

[src]
[]

This method tests for !=.

impl Clone for Preference
[src]

[src]
[]

Returns a copy of the value. Read more

1.0.0
[src]
[]

Performs copy-assignment from source. Read more

impl Debug for Preference
[src]

[src]
[]

Formats the value using the given formatter.

impl Display for Preference
[src]

[src]
[]

Formats the value using the given formatter. Read more

impl FromStr for Preference
[src]

The associated error which can be returned from parsing.

[src]
[]

Parses a string s to return a value of this type. Read more