pub struct EncodeTotals {
pub read: usize,
pub written: usize,
}
Expand description
The return type of encode
that holds the bytes read and byte written after
the encode operation.
Fields§
§read: usize
Number of bytes that were read from the input buffer.
written: usize
Number of bytes that were written to the output buffer.
Trait Implementations§
Source§impl AddAssign for EncodeTotals
impl AddAssign for EncodeTotals
Source§fn add_assign(&mut self, other: EncodeTotals)
fn add_assign(&mut self, other: EncodeTotals)
Performs the
+=
operation. Read moreAuto Trait Implementations§
impl Freeze for EncodeTotals
impl RefUnwindSafe for EncodeTotals
impl Send for EncodeTotals
impl Sync for EncodeTotals
impl Unpin for EncodeTotals
impl UnwindSafe for EncodeTotals
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