pub struct CompressProgress {
pub read: usize,
pub written: usize,
pub remaining: usize,
}Expand description
What one StreamEncoder::compress call did.
Fields§
§read: usizeInput bytes consumed.
written: usizeOutput bytes written.
remaining: usizeCompressed bytes still waiting for room in the output (libzstd’s
return value of ZSTD_compressStream2). After EndOp::Flush,
0 means the flush is complete; after EndOp::End, that the frame
is complete.
Trait Implementations§
Source§impl Clone for CompressProgress
impl Clone for CompressProgress
impl Copy for CompressProgress
Source§impl Debug for CompressProgress
impl Debug for CompressProgress
impl Eq for CompressProgress
Source§impl PartialEq for CompressProgress
impl PartialEq for CompressProgress
impl StructuralPartialEq for CompressProgress
Auto Trait Implementations§
impl Forget for CompressProgress
impl Freeze for CompressProgress
impl Move for CompressProgress
impl RefUnwindSafe for CompressProgress
impl Send for CompressProgress
impl Sync for CompressProgress
impl Unpin for CompressProgress
impl UnsafeUnpin for CompressProgress
impl UnwindSafe for CompressProgress
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