pub enum ContentEncoding {
Gzip,
None,
}
Expand description
Supported HTTP Content-Encoding headers.
Variants§
Trait Implementations§
Source§impl Clone for ContentEncoding
impl Clone for ContentEncoding
Source§fn clone(&self) -> ContentEncoding
fn clone(&self) -> ContentEncoding
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ContentEncoding
impl Debug for ContentEncoding
Source§impl Default for ContentEncoding
impl Default for ContentEncoding
Source§fn default() -> ContentEncoding
fn default() -> ContentEncoding
Returns the “default value” for a type. Read more
Source§impl From<&HeaderMap> for ContentEncoding
impl From<&HeaderMap> for ContentEncoding
Source§impl Hash for ContentEncoding
impl Hash for ContentEncoding
Source§impl Ord for ContentEncoding
impl Ord for ContentEncoding
Source§fn cmp(&self, other: &ContentEncoding) -> Ordering
fn cmp(&self, other: &ContentEncoding) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ContentEncoding
impl PartialEq for ContentEncoding
Source§impl PartialOrd for ContentEncoding
impl PartialOrd for ContentEncoding
impl Copy for ContentEncoding
impl Eq for ContentEncoding
impl StructuralPartialEq for ContentEncoding
Auto Trait Implementations§
impl Freeze for ContentEncoding
impl RefUnwindSafe for ContentEncoding
impl Send for ContentEncoding
impl Sync for ContentEncoding
impl Unpin for ContentEncoding
impl UnwindSafe for ContentEncoding
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