pub enum CompressionMode {
Never,
Attempt,
Always,
}
Expand description
Mode specifying when a delivery blob should be compressed.
Variants§
Never
Never compress input, output uncompressed.
Attempt
Compress input, output compressed if saves space, otherwise uncompressed.
Always
Compress input, output compressed unconditionally (even if space is wasted).
Trait Implementations§
Source§impl Clone for CompressionMode
impl Clone for CompressionMode
Source§fn clone(&self) -> CompressionMode
fn clone(&self) -> CompressionMode
Returns a copy 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 CompressionMode
impl Debug for CompressionMode
Source§impl PartialEq for CompressionMode
impl PartialEq for CompressionMode
impl Copy for CompressionMode
impl Eq for CompressionMode
impl StructuralPartialEq for CompressionMode
Auto Trait Implementations§
impl Freeze for CompressionMode
impl RefUnwindSafe for CompressionMode
impl Send for CompressionMode
impl Sync for CompressionMode
impl Unpin for CompressionMode
impl UnwindSafe for CompressionMode
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)