pub struct ResultCompressor { /* private fields */ }Expand description
Compression helper for result values
Implementations§
Source§impl ResultCompressor
impl ResultCompressor
Sourcepub const fn should_compress(&self, data: &[u8]) -> bool
pub const fn should_compress(&self, data: &[u8]) -> bool
Check if value should be compressed
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ResultCompressor
impl RefUnwindSafe for ResultCompressor
impl Send for ResultCompressor
impl Sync for ResultCompressor
impl Unpin for ResultCompressor
impl UnwindSafe for ResultCompressor
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