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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)