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
Source§fn clone(&self) -> CompressLevel
fn clone(&self) -> CompressLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl 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