pub struct NoneCodec;
Available on
codec_api
only.Expand description
None/copy codec that does a byte-for-byte copy of the input buffer.
§Buffer Restrictions
The input buffer must be exactly the same length as the output buffer.
Trait Implementations§
source§impl CodecImplementation for NoneCodec
impl CodecImplementation for NoneCodec
source§impl CompressionCodecType for NoneCodec
impl CompressionCodecType for NoneCodec
source§fn codec_type(&self) -> CodecType
fn codec_type(&self) -> CodecType
Returns the known
CodecType
that this
codec implements.impl CompressionCodec 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 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