Struct tower_http::compression::predicate::NotForContentType
source · pub struct NotForContentType { /* private fields */ }
Available on crate features
compression-br
or compression-deflate
or compression-gzip
or compression-zstd
only.Expand description
Predicate that wont allow responses with a specific content-type
to be compressed.
Implementations§
Trait Implementations§
source§impl Clone for NotForContentType
impl Clone for NotForContentType
source§fn clone(&self) -> NotForContentType
fn clone(&self) -> NotForContentType
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 NotForContentType
impl Debug for NotForContentType
source§impl Predicate for NotForContentType
impl Predicate for NotForContentType
Auto Trait Implementations§
impl RefUnwindSafe for NotForContentType
impl Send for NotForContentType
impl Sync for NotForContentType
impl Unpin for NotForContentType
impl UnwindSafe for NotForContentType
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