pub struct EncodeProgress {
pub consumed: usize,
pub produced: usize,
pub done: bool,
}Expand description
Bytes one StreamEncoder::encode call took and wrote, and whether its
step is complete: all input taken for Write, everything flushed or ended
for Flush and End.
Fields§
§consumed: usize§produced: usize§done: boolTrait Implementations§
Source§impl Clone for EncodeProgress
impl Clone for EncodeProgress
Source§fn clone(&self) -> EncodeProgress
fn clone(&self) -> EncodeProgress
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for EncodeProgress
Source§impl Debug for EncodeProgress
impl Debug for EncodeProgress
impl Eq for EncodeProgress
Source§impl PartialEq for EncodeProgress
impl PartialEq for EncodeProgress
Source§fn eq(&self, other: &EncodeProgress) -> bool
fn eq(&self, other: &EncodeProgress) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EncodeProgress
Auto Trait Implementations§
impl Freeze for EncodeProgress
impl RefUnwindSafe for EncodeProgress
impl Send for EncodeProgress
impl Sync for EncodeProgress
impl Unpin for EncodeProgress
impl UnsafeUnpin for EncodeProgress
impl UnwindSafe for EncodeProgress
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