pub struct RunPacker { /* private fields */ }Expand description
Incremental packer: feed chunks in arrival order, write out what it returns.
Holding a partial run is what buys the compression, so the packer trades a
bounded write delay (at most [MAX_RUN] members) for it. RunPacker::flush
must be called at the end of a call’s stream — otherwise its tail sits in
the buffer and never reaches the file.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for RunPacker
impl Freeze for RunPacker
impl Move for RunPacker
impl RefUnwindSafe for RunPacker
impl Send for RunPacker
impl Sync for RunPacker
impl Unpin for RunPacker
impl UnsafeUnpin for RunPacker
impl UnwindSafe for RunPacker
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