pub struct Status {
pub remaining: usize,
pub bytes_read: usize,
pub bytes_written: usize,
}
Expand description
Describes the result of an operation.
Fields§
§remaining: usize
Number of bytes expected for next input.
- If
remaining = 0
, then we are at the end of a frame. - If
remaining > 0
, then it’s just a hint for how much there is still to read.
bytes_read: usize
Number of bytes read from the input.
bytes_written: usize
Number of bytes written to the output.
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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