pub enum Encoding {
Identity,
Gzip,
Brotli,
Deflate,
Unknown,
}Expand description
An HTTP content coding.
Variants§
Identity
Gzip
Brotli
Deflate
Unknown
A coding we do not handle — caller must NOT attempt to decode/repair.
Implementations§
Source§impl Encoding
impl Encoding
Sourcepub fn from_token(token: &str) -> Self
pub fn from_token(token: &str) -> Self
Parse a single Content-Encoding / Accept-Encoding token (case-insensitive).
Sourcepub fn header_value(self) -> Option<&'static str>
pub fn header_value(self) -> Option<&'static str>
The header value to advertise for this coding, if any.
Trait Implementations§
impl Copy 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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.