pub struct Compressor { /* private fields */ }Implementations§
Source§impl Compressor
impl Compressor
pub fn new() -> Self
Sourcepub fn compress_with_loaded_dict(&mut self, frame: &[u8]) -> Result<Bytes>
pub fn compress_with_loaded_dict(&mut self, frame: &[u8]) -> Result<Bytes>
Compresses the given frame using the previously loaded dict, if any.
Sourcepub fn compress_with_dict_reset(&mut self, frame: &[u8]) -> Result<Bytes>
pub fn compress_with_dict_reset(&mut self, frame: &[u8]) -> Result<Bytes>
Compresses the given frame after resetting dict.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Compressor
impl RefUnwindSafe for Compressor
impl Send for Compressor
impl Sync for Compressor
impl Unpin for Compressor
impl UnwindSafe for Compressor
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