pub struct BrotliOptions { /* private fields */ }
Available on crate features
compress
and brotli
only.Expand description
Options for Brotli compression.
Implementations§
Source§impl BrotliOptions
impl BrotliOptions
Sourcepub const fn from_quality_window(quality: u32, window: u32) -> Self
pub const fn from_quality_window(quality: u32, window: u32) -> Self
Creates Brotli options with the specified quality and window size.
§Arguments
quality
- Compression quality (0-11, clamped to this range)window
- Window size (10-24, clamped to this range)
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 brotli bitstream. If a value is set, then a similar skippable frame format used by LZ4 and ZSTD is used.
Af value between 1..=64KiB will be set to 64KiB.
This was first implemented by zstdmt. The default value is 128 KiB.
Trait Implementations§
Source§impl Clone for BrotliOptions
impl Clone for BrotliOptions
Source§fn clone(&self) -> BrotliOptions
fn clone(&self) -> BrotliOptions
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 BrotliOptions
impl Debug for BrotliOptions
Source§impl Default for BrotliOptions
impl Default for BrotliOptions
Source§impl From<BrotliOptions> for EncoderConfiguration
impl From<BrotliOptions> for EncoderConfiguration
Source§fn from(options: BrotliOptions) -> Self
fn from(options: BrotliOptions) -> Self
Converts to this type from the input type.
Source§impl From<BrotliOptions> for EncoderOptions
impl From<BrotliOptions> for EncoderOptions
Source§fn from(o: BrotliOptions) -> Self
fn from(o: BrotliOptions) -> Self
Converts to this type from the input type.
impl Copy for BrotliOptions
Auto Trait Implementations§
impl Freeze for BrotliOptions
impl RefUnwindSafe for BrotliOptions
impl Send for BrotliOptions
impl Sync for BrotliOptions
impl Unpin for BrotliOptions
impl UnwindSafe for BrotliOptions
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