Enum rocket::http::hyper::header::Preference [−][src]
pub enum Preference {
RespondAsync,
ReturnRepresentation,
ReturnMinimal,
HandlingStrict,
HandlingLeniant,
Wait(u32),
Extension(String, String, Vec<(String, String), Global>),
}
Expand description
Prefer contains a list of these preferences.
Variants
“respond-async”
“return=representation”
“return=minimal”
“handling=strict”
“handling=leniant”
Wait(u32)
“wait=delta”
Tuple Fields of Wait
0: u32
Extension preferences. Always has a value, if none is specified it is just “”. A preference can also have a list of parameters.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for Preference
impl Send for Preference
impl Sync for Preference
impl Unpin for Preference
impl UnwindSafe for Preference
Blanket Implementations
Mutably borrows from an owned value. Read more