Struct below_store::compression::Compressor
source · [−]pub struct Compressor { /* private fields */ }Implementations
sourceimpl 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.
Auto Trait Implementations
impl RefUnwindSafe for Compressor
impl Send for Compressor
impl !Sync for Compressor
impl Unpin for Compressor
impl UnwindSafe for Compressor
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more