pub enum Encoding {
Chunked,
Deflate,
Gzip,
Brotli,
Compress,
Identity,
}Expand description
A set of HTTP Transfer- or Content-Encoding values.
The Display/ToString representation is as per the HTTP header value.
Variants§
Chunked
Chunked (transfer encoding) is typically applied or removed by HTTP
client and server implementations—even minimal ones.
Deflate
Gzip
Brotli
Compress
This obsolete LZW format is not generally used or supported currently, but is included for error reporting.
Identity
May be used to explicitly indicate that an encoding previously applied has been decoded (removed).
Trait Implementations§
Source§impl PartialOrd for Encoding
impl PartialOrd for Encoding
impl Copy 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