pub enum CompressPreference {
None,
Full,
}Expand description
The preference of compression in CompressedResponse.
Variants§
None
Will not auto-compress response body
Full
Will automatically compress and send compressed versions of the response
Trait Implementations§
source§impl Clone for CompressPreference
impl Clone for CompressPreference
source§fn clone(&self) -> CompressPreference
fn clone(&self) -> CompressPreference
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 CompressPreference
impl Debug for CompressPreference
source§impl Hash for CompressPreference
impl Hash for CompressPreference
source§impl PartialEq for CompressPreference
impl PartialEq for CompressPreference
impl Copy for CompressPreference
impl Eq for CompressPreference
impl StructuralPartialEq for CompressPreference
Auto Trait Implementations§
impl Freeze for CompressPreference
impl RefUnwindSafe for CompressPreference
impl Send for CompressPreference
impl Sync for CompressPreference
impl Unpin for CompressPreference
impl UnwindSafe for CompressPreference
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)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more