pub struct ZstdCodec {
pub level: i32,
}Expand description
Zstandard codec with configurable compression level.
Fields§
§level: i32Compression level (1-22, default 3).
Implementations§
Trait Implementations§
Source§impl Codec for ZstdCodec
impl Codec for ZstdCodec
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 ZstdCodec
Auto Trait Implementations§
impl Freeze for ZstdCodec
impl RefUnwindSafe for ZstdCodec
impl Send for ZstdCodec
impl Sync for ZstdCodec
impl Unpin for ZstdCodec
impl UnsafeUnpin for ZstdCodec
impl UnwindSafe for ZstdCodec
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