#[repr(u8)]pub enum CompressionAlgorithm {
None = 0,
Zstd = 1,
Gzip = 2,
}Variants§
Implementations§
Source§impl CompressionAlgorithm
impl CompressionAlgorithm
pub fn from_accept_encoding(headers: &HeaderMap) -> Self
Trait Implementations§
Source§impl Clone for CompressionAlgorithm
impl Clone for CompressionAlgorithm
Source§fn clone(&self) -> CompressionAlgorithm
fn clone(&self) -> CompressionAlgorithm
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 CompressionAlgorithm
impl Debug for CompressionAlgorithm
Source§impl Ordinalize for CompressionAlgorithm
impl Ordinalize for CompressionAlgorithm
Source§const VARIANT_COUNT: usize = 3usize
const VARIANT_COUNT: usize = 3usize
The count of variants.
Source§type VariantType = u8
type VariantType = u8
The type of the values of the variants.
Source§unsafe fn from_ordinal_unsafe(number: u8) -> Self
unsafe fn from_ordinal_unsafe(number: u8) -> Self
Obtain a variant based on an integer number. Read more
Source§fn from_ordinal(number: u8) -> Option<Self>
fn from_ordinal(number: u8) -> Option<Self>
Obtain a variant based on an integer number.
Source§impl PartialEq for CompressionAlgorithm
impl PartialEq for CompressionAlgorithm
impl Copy for CompressionAlgorithm
impl Eq for CompressionAlgorithm
impl StructuralPartialEq for CompressionAlgorithm
Auto Trait Implementations§
impl Freeze for CompressionAlgorithm
impl RefUnwindSafe for CompressionAlgorithm
impl Send for CompressionAlgorithm
impl Sync for CompressionAlgorithm
impl Unpin for CompressionAlgorithm
impl UnwindSafe for CompressionAlgorithm
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