pub struct Decompressor { /* private fields */ }Expand description
Decompressor with anti zip-bomb protection
Implementations§
Source§impl Decompressor
impl Decompressor
Sourcepub fn decompress(
&self,
data: &[u8],
compression: CompressionType,
) -> Result<Bytes>
pub fn decompress( &self, data: &[u8], compression: CompressionType, ) -> Result<Bytes>
Decompresses the data
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Decompressor
impl RefUnwindSafe for Decompressor
impl Send for Decompressor
impl Sync for Decompressor
impl Unpin for Decompressor
impl UnwindSafe for Decompressor
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