Enum espresso::config::CompressionConfig
source · pub enum CompressionConfig {
Auto,
Disabled,
}
Expand description
Tells the server whether to compress responses or not.
Variants
Auto
Automatically select encoding based on encoding negotiation.
Disabled
Don’t use any compression.
Trait Implementations
sourceimpl Clone for CompressionConfig
impl Clone for CompressionConfig
sourcefn clone(&self) -> CompressionConfig
fn clone(&self) -> CompressionConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for CompressionConfig
impl Debug for CompressionConfig
sourceimpl<'de> Deserialize<'de> for CompressionConfig
impl<'de> Deserialize<'de> for CompressionConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<CompressionConfig> for CompressionConfig
impl PartialEq<CompressionConfig> for CompressionConfig
sourcefn eq(&self, other: &CompressionConfig) -> bool
fn eq(&self, other: &CompressionConfig) -> bool
sourceimpl Serialize for CompressionConfig
impl Serialize for CompressionConfig
impl StructuralPartialEq for CompressionConfig
Auto Trait Implementations
impl RefUnwindSafe for CompressionConfig
impl Send for CompressionConfig
impl Sync for CompressionConfig
impl Unpin for CompressionConfig
impl UnwindSafe for CompressionConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more