pub struct StreamCompressOptions {
pub level: Level,
pub threads: Option<usize>,
pub checksum: bool,
pub seekable: bool,
}Expand description
Options for streaming compression operations.
Fields§
§level: LevelCompression level (default: Level::Default)
threads: Option<usize>Number of worker threads (default: None = auto-detect CPU cores).
At most the library maximum (512); more is Error::BadParam.
checksum: boolWrite checksums for data integrity (default: false)
seekable: boolEnable seek table for random-access decompression (default: false)
Implementations§
Source§impl StreamCompressOptions
impl StreamCompressOptions
Sourcepub fn with_level(level: Level) -> Self
pub fn with_level(level: Level) -> Self
Create options with the specified compression level.
Sourcepub fn with_checksum(self) -> Self
pub fn with_checksum(self) -> Self
Writes checksums for data integrity.
Sourcepub fn without_checksum(self) -> Self
👎Deprecated: checksums are off by default: drop this call
pub fn without_checksum(self) -> Self
checksums are off by default: drop this call
Writes no checksums, which is the default.
Sourcepub fn with_seekable(self) -> Self
pub fn with_seekable(self) -> Self
Enable seek table for random-access decompression.
Trait Implementations§
Source§impl Clone for StreamCompressOptions
impl Clone for StreamCompressOptions
Source§impl Debug for StreamCompressOptions
impl Debug for StreamCompressOptions
Auto Trait Implementations§
impl Forget for StreamCompressOptions
impl Freeze for StreamCompressOptions
impl Move for StreamCompressOptions
impl RefUnwindSafe for StreamCompressOptions
impl Send for StreamCompressOptions
impl Sync for StreamCompressOptions
impl Unpin for StreamCompressOptions
impl UnsafeUnpin for StreamCompressOptions
impl UnwindSafe for StreamCompressOptions
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