Enum kvarn::comprash::CompressPreference
source · 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<CompressPreference> for CompressPreference
impl PartialEq<CompressPreference> for CompressPreference
source§fn eq(&self, other: &CompressPreference) -> bool
fn eq(&self, other: &CompressPreference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for CompressPreference
impl Eq for CompressPreference
impl StructuralEq for CompressPreference
impl StructuralPartialEq for CompressPreference
Auto Trait Implementations§
impl RefUnwindSafe for CompressPreference
impl Send for CompressPreference
impl Sync for CompressPreference
impl Unpin for CompressPreference
impl UnwindSafe for CompressPreference
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more