pub struct Progress<S> {
pub consumed: usize,
pub produced: usize,
pub status: S,
}Expand description
What one step call did.
consumed and produced are exact: the codec never keeps caller bytes
between calls, so the bytes after consumed belong to the caller and
must be presented again (followed by more) on the next call. See the
module documentation for the progress invariant.
Fields§
§consumed: usizeInput bytes taken.
produced: usizeOutput bytes written.
status: SWhy the call returned.
Trait Implementations§
impl<S: Copy> Copy for Progress<S>
impl<S: Eq> Eq for Progress<S>
impl<S: PartialEq> StructuralPartialEq for Progress<S>
Auto Trait Implementations§
impl<S> Freeze for Progress<S>where
S: Freeze,
impl<S> RefUnwindSafe for Progress<S>where
S: RefUnwindSafe,
impl<S> Send for Progress<S>where
S: Send,
impl<S> Sync for Progress<S>where
S: Sync,
impl<S> Unpin for Progress<S>where
S: Unpin,
impl<S> UnsafeUnpin for Progress<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for Progress<S>where
S: UnwindSafe,
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