pub struct Identity;Expand description
Zero-sized identity transform, usable for compression, encryption, or both.
Trait Implementations§
Source§impl CompressionCodec for Identity
impl CompressionCodec for Identity
Source§const FORMAT: Compression = Compression::None
const FORMAT: Compression = Compression::None
Metadata format implemented by this codec.
impl Copy for Identity
Source§impl EncryptionCodec for Identity
impl EncryptionCodec for Identity
Source§const FORMAT: Encryption = Encryption::None
const FORMAT: Encryption = Encryption::None
Metadata format implemented by this codec.
Auto Trait Implementations§
impl Freeze for Identity
impl RefUnwindSafe for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
impl UnwindSafe for Identity
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