#[non_exhaustive]pub enum Encoding {
Chunked,
Gzip,
Deflate,
Brotli,
Zstd,
Identity,
}
Expand description
Available compression algorithms.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Chunked
Send a series of chunks.
Gzip
The Gzip encoding.
Deflate
The Deflate encoding.
Brotli
The Brotli encoding.
Zstd
The Zstd encoding.
Identity
No encoding.
Trait Implementations§
Source§impl From<&Encoding> for TransferEncoding
impl From<&Encoding> for TransferEncoding
Source§impl From<Encoding> for EncodingProposal
impl From<Encoding> for EncodingProposal
Source§impl From<Encoding> for HeaderValue
impl From<Encoding> for HeaderValue
Source§impl From<Encoding> for TransferEncoding
impl From<Encoding> for TransferEncoding
Source§impl PartialEq<&Encoding> for TransferEncoding
impl PartialEq<&Encoding> for TransferEncoding
Source§impl PartialEq<Encoding> for &EncodingProposal
impl PartialEq<Encoding> for &EncodingProposal
Source§impl PartialEq<Encoding> for EncodingProposal
impl PartialEq<Encoding> for EncodingProposal
Source§impl PartialEq<Encoding> for TransferEncoding
impl PartialEq<Encoding> for TransferEncoding
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 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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more