pub enum Encoding {
Known(ContentEncoding),
Unknown(String),
}
Expand description
A value to represent an encoding used in the Accept-Encoding
and Content-Encoding
header.
Variants§
Known(ContentEncoding)
A supported content encoding. See ContentEncoding
for variants.
Unknown(String)
Some other encoding that is less common, can be any string.
Implementations§
Trait Implementations§
source§impl FromStr for Encoding
impl FromStr for Encoding
§type Err = ParseError
type Err = ParseError
The associated error which can be returned from parsing.
source§impl PartialEq for Encoding
impl PartialEq for Encoding
impl Eq for Encoding
impl StructuralPartialEq for Encoding
Auto Trait Implementations§
impl Freeze for Encoding
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnwindSafe for Encoding
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.