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]
impl BrotliCompressStrategy
pub fn set_min_len(self, size: u64) -> Self
[src]
pub fn set_min_len(self, size: u64) -> Self
Set minimum length in bytes for when to use compression. Default: 1 KiB.
pub fn set_compression_level(self, level: u32) -> Self
[src]
pub fn set_compression_level(self, level: u32) -> Self
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]
impl Clone for BrotliCompressStrategy
fn clone(&self) -> BrotliCompressStrategy
[src]
fn clone(&self) -> BrotliCompressStrategy
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for BrotliCompressStrategy
[src]
impl Copy for BrotliCompressStrategy
impl Debug for BrotliCompressStrategy
[src]
impl Debug for BrotliCompressStrategy
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for BrotliCompressStrategy
[src]
impl Default for BrotliCompressStrategy
impl CompressStrategy for BrotliCompressStrategy
[src]
impl CompressStrategy for BrotliCompressStrategy
fn wrap_encoder<'a>(
&self,
rec: &'a MetaRecorded,
file: &'a File
) -> Result<EncodeWrapper<'a>, BarcError>
[src]
fn wrap_encoder<'a>(
&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
Auto Trait Implementations
impl Send for BrotliCompressStrategy
impl Send for BrotliCompressStrategy
impl Sync for BrotliCompressStrategy
impl Sync for BrotliCompressStrategy