pub struct SizeAbove(/* private fields */);
Expand description
Predicate
that will only allow compression of responses above a certain size.
Implementations§
Source§impl SizeAbove
impl SizeAbove
Sourcepub const fn new(min_size_bytes: u16) -> SizeAbove
pub const fn new(min_size_bytes: u16) -> SizeAbove
Create a new SizeAbove
predicate that will only compress responses larger than
min_size_bytes
.
The response will be compressed if the exact size cannot be determined through either the
content-length
header or Body::size_hint
.
Trait Implementations§
impl Copy for SizeAbove
Auto Trait Implementations§
impl Freeze for SizeAbove
impl RefUnwindSafe for SizeAbove
impl Send for SizeAbove
impl Sync for SizeAbove
impl Unpin for SizeAbove
impl UnwindSafe for SizeAbove
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