Enum websocket::header::Preference
source · [−]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
RespondAsync
“respond-async”
ReturnRepresentation
“return=representation”
ReturnMinimal
“return=minimal”
HandlingStrict
“handling=strict”
HandlingLeniant
“handling=leniant”
Wait(u32)
“wait=delta”
Extension(String, String, Vec<(String, String), Global>)
Extension preferences. Always has a value, if none is specified it is just “”. A preference can also have a list of parameters.
Trait Implementations
sourceimpl Clone for Preference
impl Clone for Preference
sourcefn clone(&self) -> Preference
fn clone(&self) -> Preference
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Preference
impl Debug for Preference
sourceimpl Display for Preference
impl Display for Preference
sourceimpl FromStr for Preference
impl FromStr for Preference
sourceimpl PartialEq<Preference> for Preference
impl PartialEq<Preference> for Preference
sourcefn eq(&self, other: &Preference) -> bool
fn eq(&self, other: &Preference) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Preference) -> bool
fn ne(&self, other: &Preference) -> bool
This method tests for !=
.
impl StructuralPartialEq for Preference
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more