pub enum CompressionAlgorithm {
GZIP,
BROTLI,
DEFLATE,
NONE,
}Variants§
Implementations§
Source§impl CompressionAlgorithm
impl CompressionAlgorithm
pub fn is_none(&self) -> bool
pub fn or(self, next: CompressionAlgorithm) -> CompressionAlgorithm
pub fn is_some(&self) -> bool
pub fn from(str: String) -> CompressionAlgorithm
pub fn supported_algorithms() -> Vec<String>
pub fn to_string_for_content_encoding(&self) -> String
pub fn to_string_for_transfer_encoding(&self) -> String
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 moreimpl Copy 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