pub struct Lz4Options { /* private fields */ }
Available on crate features
compress
and lz4
only.Expand description
Options for LZ4 compression.
Implementations§
Source§impl Lz4Options
impl Lz4Options
Sourcepub fn with_skippable_frame_size(self, skippable_frame_size: u32) -> Self
pub fn with_skippable_frame_size(self, skippable_frame_size: u32) -> Self
Set’s the skippable frame size. The size is defined as the size of uncompressed data a frame contains. A value of 0 deactivates skippable frames and uses the native LZ4 bitstream. If a value is set, then the similar skippable frame format is used.
Af value between 1..=64KiB will be set to 64KiB.
This was first implemented by zstdmt.
Defaults to not use the skippable frame format at all, since LZ4 is extremely fast and will most likely saturate IO even on a single thread.
Trait Implementations§
Source§impl Clone for Lz4Options
impl Clone for Lz4Options
Source§fn clone(&self) -> Lz4Options
fn clone(&self) -> Lz4Options
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 Debug for Lz4Options
impl Debug for Lz4Options
Source§impl Default for Lz4Options
impl Default for Lz4Options
Source§fn default() -> Lz4Options
fn default() -> Lz4Options
Returns the “default value” for a type. Read more
Source§impl From<Lz4Options> for EncoderConfiguration
impl From<Lz4Options> for EncoderConfiguration
Source§fn from(options: Lz4Options) -> Self
fn from(options: Lz4Options) -> Self
Converts to this type from the input type.
Source§impl From<Lz4Options> for EncoderOptions
impl From<Lz4Options> for EncoderOptions
Source§fn from(o: Lz4Options) -> Self
fn from(o: Lz4Options) -> Self
Converts to this type from the input type.
impl Copy for Lz4Options
Auto Trait Implementations§
impl Freeze for Lz4Options
impl RefUnwindSafe for Lz4Options
impl Send for Lz4Options
impl Sync for Lz4Options
impl Unpin for Lz4Options
impl UnwindSafe for Lz4Options
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