pub struct NoneCodec;Expand description
No-op codec (passthrough).
Trait Implementations§
Source§impl Codec for NoneCodec
impl Codec for NoneCodec
Source§fn kind(&self) -> CompressionKind
fn kind(&self) -> CompressionKind
Returns the compression kind for this codec.
Source§fn decompress(&self, input: &[u8]) -> Result<Vec<u8>, StorageError>
fn decompress(&self, input: &[u8]) -> Result<Vec<u8>, StorageError>
Decompresses previously compressed data.
impl Copy for NoneCodec
Auto Trait Implementations§
impl Freeze for NoneCodec
impl RefUnwindSafe for NoneCodec
impl Send for NoneCodec
impl Sync for NoneCodec
impl Unpin for NoneCodec
impl UnsafeUnpin for NoneCodec
impl UnwindSafe for NoneCodec
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