pub enum CompressLevel {
Auto,
Fast,
Balanced,
Max,
Fixed(i32),
}Expand description
Client-side compression level configuration.
Variants§
Auto
Micro-benchmark the advertised range on a real file sample.
Fast
Cheapest (min) — least CPU.
Balanced
The server’s advertised default.
Max
Best ratio (max).
Fixed(i32)
An explicit level (clamped into the advertised range).
Trait Implementations§
Source§impl Clone for CompressLevel
impl Clone for CompressLevel
impl Copy for CompressLevel
Source§impl Debug for CompressLevel
impl Debug for CompressLevel
impl Eq for CompressLevel
Source§impl PartialEq for CompressLevel
impl PartialEq for CompressLevel
impl StructuralPartialEq for CompressLevel
Auto Trait Implementations§
impl Freeze for CompressLevel
impl RefUnwindSafe for CompressLevel
impl Send for CompressLevel
impl Sync for CompressLevel
impl Unpin for CompressLevel
impl UnsafeUnpin for CompressLevel
impl UnwindSafe for CompressLevel
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§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.