pub struct Decompressor(/* private fields */);Expand description
The streaming decompressor of DecompressionStream, for host code such
as an HTTP client that decodes a Content-Encoding.
Write input, then read output until read returns None
before writing again; after finish, reads return the
rest and fail if the compressed stream ended early. Each read returns at
most 64 KiB, so a small input never inflates into one large buffer, and
the decompressed bytes in all count toward limit, failing with
LimitExceeded past it. Data after the end of the stream, invalid data
and a gzip checksum that does not match fail with InvalidRequest.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Decompressor
impl Freeze for Decompressor
impl Move for Decompressor
impl RefUnwindSafe for Decompressor
impl Send for Decompressor
impl Sync for Decompressor
impl Unpin for Decompressor
impl UnsafeUnpin 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