[][src]Struct rocks::advanced_options::CompressionOptions

#[repr(C)]pub struct CompressionOptions {
    pub window_bits: c_int,
    pub level: c_int,
    pub strategy: c_int,
    pub max_dict_bytes: u32,
}

Compression options for different compression algorithms like Zlib

Fields

window_bits: c_intlevel: c_intstrategy: c_intmax_dict_bytes: u32

Maximum size of dictionary used to prime the compression library. Currently this dictionary will be constructed by sampling the first output file in a subcompaction when the target level is bottommost. This dictionary will be loaded into the compression library before compressing/uncompressing each data block of subsequent files in the subcompaction. Effectively, this improves compression ratios when there are repetitions across data blocks. A value of 0 indicates the feature is disabled. Default: 0.

Implementations

impl CompressionOptions[src]

pub fn new(
    wbits: c_int,
    lev: c_int,
    strategy: c_int,
    max_dict_bytes: u32
) -> CompressionOptions
[src]

Trait Implementations

impl Default for CompressionOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.