pub struct CompressConfig { /* private fields */ }Expand description
The configuration of CompressMiddleware.
Implementations§
Source§impl CompressConfig
Inherent implementation of CompressConfig.
impl CompressConfig
Inherent implementation of CompressConfig.
Sourcepub fn get_min_length(&self) -> usize
pub fn get_min_length(&self) -> usize
The body length below which a response is answered without a content coding.
§Returns
usize- The threshold.
Sourcepub fn set_min_length(&mut self, min_length: usize) -> &mut Self
pub fn set_min_length(&mut self, min_length: usize) -> &mut Self
Sourcepub fn with_min_length(self, min_length: usize) -> Self
pub fn with_min_length(self, min_length: usize) -> Self
Trait Implementations§
Source§impl Clone for CompressConfig
impl Clone for CompressConfig
impl Copy for CompressConfig
Source§impl Debug for CompressConfig
impl Debug for CompressConfig
Source§impl Default for CompressConfig
Default construction for CompressConfig.
impl Default for CompressConfig
Default construction for CompressConfig.
impl Eq for CompressConfig
Source§impl PartialEq for CompressConfig
impl PartialEq for CompressConfig
impl StructuralPartialEq for CompressConfig
Auto Trait Implementations§
impl Forget for CompressConfig
impl Freeze for CompressConfig
impl Move for CompressConfig
impl RefUnwindSafe for CompressConfig
impl Send for CompressConfig
impl Sync for CompressConfig
impl Unpin for CompressConfig
impl UnsafeUnpin for CompressConfig
impl UnwindSafe for CompressConfig
Blanket Implementations§
impl<T> AnySend for T
impl<T> AnySendClone for T
impl<T> AnySendSync for T
impl<T> AnySendSyncClone for T
impl<T> AnySync for T
impl<T> AnySyncClone for T
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.