pub struct NoopCompressor;Expand description
No-op compressor (disabled compression)
Trait Implementations§
Source§impl Clone for NoopCompressor
impl Clone for NoopCompressor
Source§fn clone(&self) -> NoopCompressor
fn clone(&self) -> NoopCompressor
Returns a duplicate 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 Compressor for NoopCompressor
impl Compressor for NoopCompressor
Source§fn decompress(&self, data: &[u8]) -> Result<Vec<u8>, CacheError>
fn decompress(&self, data: &[u8]) -> Result<Vec<u8>, CacheError>
Decompress data
Source§fn should_compress(&self, _data: &[u8]) -> bool
fn should_compress(&self, _data: &[u8]) -> bool
Check if data should be compressed (based on size threshold)
Source§impl Debug for NoopCompressor
impl Debug for NoopCompressor
Source§impl Default for NoopCompressor
impl Default for NoopCompressor
Source§fn default() -> NoopCompressor
fn default() -> NoopCompressor
Returns the “default value” for a type. Read more
impl Copy for NoopCompressor
Auto Trait Implementations§
impl Freeze for NoopCompressor
impl RefUnwindSafe for NoopCompressor
impl Send for NoopCompressor
impl Sync for NoopCompressor
impl Unpin for NoopCompressor
impl UnwindSafe for NoopCompressor
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