Struct body_image::barc::GzipCompressStrategy [−][src]
pub struct GzipCompressStrategy { /* fields omitted */ }
Strategy for gzip compression. Will not compress if a minimum length estimate is not reached.
Methods
impl GzipCompressStrategy
[src]
impl GzipCompressStrategy
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: 4 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 GzipCompressStrategy
[src]
impl Clone for GzipCompressStrategy
fn clone(&self) -> GzipCompressStrategy
[src]
fn clone(&self) -> GzipCompressStrategy
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 GzipCompressStrategy
[src]
impl Copy for GzipCompressStrategy
impl Debug for GzipCompressStrategy
[src]
impl Debug for GzipCompressStrategy
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 GzipCompressStrategy
[src]
impl Default for GzipCompressStrategy
impl CompressStrategy for GzipCompressStrategy
[src]
impl CompressStrategy for GzipCompressStrategy
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 GzipCompressStrategy
impl Send for GzipCompressStrategy
impl Sync for GzipCompressStrategy
impl Sync for GzipCompressStrategy