pub enum Algorithm {
Any,
Gzip,
Brotli,
Zstd,
Dcb,
Dcz,
Other,
}Variants§
Implementations§
Source§impl Algorithm
impl Algorithm
pub fn as_str(&self) -> &'static str
pub fn compressor(&self, level: u32) -> Option<Box<dyn Encode + Send + Sync>>
pub fn maybe_compressor_with_dictionary( &self, level: u32, dictionary: &DictionaryData, ) -> Option<Box<dyn Encode + Send + Sync>>
pub fn decompressor( &self, enabled: bool, ) -> Option<Box<dyn Encode + Send + Sync>>
pub fn index(&self) -> usize
Trait Implementations§
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnsafeUnpin for Algorithm
impl UnwindSafe for Algorithm
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.