pub enum Encoding {
Chunked,
Gzip,
Deflate,
Compress,
Identity,
EncodingExt(String),
}Expand description
A value to represent an encoding used in Transfer-Encoding
or Accept-Encoding header.
Variants
Chunked
The chunked encoding.
Gzip
The gzip encoding.
Deflate
The deflate encoding.
Compress
The compress encoding.
Identity
The identity encoding.
EncodingExt(String)
Some other encoding that is less common, can be any String.
Trait Implementations
impl StructuralPartialEq for Encoding
Auto Trait Implementations
impl RefUnwindSafe for Encoding
impl Send for Encoding
impl Sync for Encoding
impl Unpin for Encoding
impl UnwindSafe for Encoding
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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