pub struct Progress {
pub consumed: usize,
pub written: usize,
}Expand description
Bytes consumed from input and written to output by one codec call.
Pair this with a Status (returned alongside) to know what the codec
is waiting for.
Fields§
§consumed: usizeBytes read from the caller’s input slice.
written: usizeBytes written to the caller’s output slice.
Trait Implementations§
impl Copy for Progress
impl Eq for Progress
impl StructuralPartialEq for Progress
Auto Trait Implementations§
impl Freeze for Progress
impl RefUnwindSafe for Progress
impl Send for Progress
impl Sync for Progress
impl Unpin for Progress
impl UnsafeUnpin for Progress
impl UnwindSafe for Progress
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