Enum websocket::header::DispositionParam
source · [−]pub enum DispositionParam {
Filename(Charset, Option<LanguageTag>, Vec<u8, Global>),
Ext(String, String),
}
Expand description
A parameter to the disposition type
Variants
Filename(Charset, Option<LanguageTag>, Vec<u8, Global>)
A Filename consisting of a Charset, an optional LanguageTag, and finally a sequence of bytes representing the filename
Ext(String, String)
Extension type consisting of token and value. Recipients should ignore unrecognized parameters.
Trait Implementations
sourceimpl Clone for DispositionParam
impl Clone for DispositionParam
sourcefn clone(&self) -> DispositionParam
fn clone(&self) -> DispositionParam
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 DispositionParam
impl Debug for DispositionParam
sourceimpl PartialEq<DispositionParam> for DispositionParam
impl PartialEq<DispositionParam> for DispositionParam
sourcefn eq(&self, other: &DispositionParam) -> bool
fn eq(&self, other: &DispositionParam) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DispositionParam) -> bool
fn ne(&self, other: &DispositionParam) -> bool
This method tests for !=
.
impl StructuralPartialEq for DispositionParam
Auto Trait Implementations
impl RefUnwindSafe for DispositionParam
impl Send for DispositionParam
impl Sync for DispositionParam
impl Unpin for DispositionParam
impl UnwindSafe for DispositionParam
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