pub struct CompressionOptions { /* private fields */ }Expand description
Compression options for plugin selection and scoring
Implementations§
Source§impl CompressionOptions
impl CompressionOptions
Sourcepub fn with_plugin(self, name: &str) -> Self
pub fn with_plugin(self, name: &str) -> Self
Specify a plugin by name (manual override)
Sourcepub fn with_weights(self, weights: ScoringWeights) -> Self
pub fn with_weights(self, weights: ScoringWeights) -> Self
Set custom scoring weights
Sourcepub fn with_timeout(self, timeout: Duration) -> Self
pub fn with_timeout(self, timeout: Duration) -> Self
Set timeout for compression operation
Sourcepub fn with_file_metadata(self, metadata: FileMetadata) -> Self
pub fn with_file_metadata(self, metadata: FileMetadata) -> Self
Set file metadata
Sourcepub fn with_cancel_token(self, token: Arc<dyn CancellationToken>) -> Self
pub fn with_cancel_token(self, token: Arc<dyn CancellationToken>) -> Self
Set cancellation token for Ctrl+C support
Trait Implementations§
Source§impl Clone for CompressionOptions
impl Clone for CompressionOptions
Source§fn clone(&self) -> CompressionOptions
fn clone(&self) -> CompressionOptions
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 CompressionOptions
impl Debug for CompressionOptions
Auto Trait Implementations§
impl Freeze for CompressionOptions
impl !RefUnwindSafe for CompressionOptions
impl Send for CompressionOptions
impl Sync for CompressionOptions
impl Unpin for CompressionOptions
impl UnsafeUnpin for CompressionOptions
impl !UnwindSafe for CompressionOptions
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