pub struct DeflatePlugin;Expand description
DEFLATE compression plugin (RFC 1951)
Uses flate2’s DEFLATE implementation with default compression level (6). This is the standard compression algorithm used by gzip, zlib, and PNG.
Trait Implementations§
Source§impl CompressionAlgorithm for DeflatePlugin
impl CompressionAlgorithm for DeflatePlugin
Source§fn metadata(&self) -> PluginMetadata
fn metadata(&self) -> PluginMetadata
Plugin metadata (performance characteristics and identification)
Source§fn compress(
&self,
input: &[u8],
cancel_flag: Arc<AtomicBool>,
) -> Result<Vec<u8>>
fn compress( &self, input: &[u8], cancel_flag: Arc<AtomicBool>, ) -> Result<Vec<u8>>
Compress input data Read more
Source§fn decompress(
&self,
input: &[u8],
cancel_flag: Arc<AtomicBool>,
) -> Result<Vec<u8>>
fn decompress( &self, input: &[u8], cancel_flag: Arc<AtomicBool>, ) -> Result<Vec<u8>>
Decompress compressed data Read more
Auto Trait Implementations§
impl Freeze for DeflatePlugin
impl RefUnwindSafe for DeflatePlugin
impl Send for DeflatePlugin
impl Sync for DeflatePlugin
impl Unpin for DeflatePlugin
impl UnsafeUnpin for DeflatePlugin
impl UnwindSafe for DeflatePlugin
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