Struct body_image::barc::BrotliCompressStrategy
[−]
[src]
pub struct BrotliCompressStrategy { /* fields omitted */ }
Strategy for Brotli compression. Will not compress if a minimum length estimate is not reached.
Methods
impl BrotliCompressStrategy
[src]
pub fn set_min_len(self, size: u64) -> Self
[src]
Set minimum length in bytes for when to use compression. Default: 1 KiB.
pub fn set_compression_level(self, level: u32) -> Self
[src]
Set the compression level to use, typically on a scale of 0-9 where 0 is no compression and 9 is highest (and slowest) compression. Default: 6.
Trait Implementations
impl Clone for BrotliCompressStrategy
[src]
fn clone(&self) -> BrotliCompressStrategy
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for BrotliCompressStrategy
[src]
impl Debug for BrotliCompressStrategy
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Default for BrotliCompressStrategy
[src]
impl CompressStrategy for BrotliCompressStrategy
[src]
fn wrap_encoder<'a>(
&self,
rec: &'a MetaRecorded,
file: &'a File
) -> Result<EncodeWrapper<'a>, BarcError>
[src]
&self,
rec: &'a MetaRecorded,
file: &'a File
) -> Result<EncodeWrapper<'a>, BarcError>
Return an EncodeWrapper
for File
by evaluating the MetaRecorded
for compression worthiness. Read more