Struct Status
struct Status { ... }
Describes the result of an operation.
Fields
remaining: usizeNumber 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.
- If
bytes_read: usizeNumber of bytes read from the input.
bytes_written: usizeNumber of bytes written to the output.
Implementations
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnsafeUnpin for Status
impl UnwindSafe for Status
impl<T> Any for Status
fn type_id(self: &Self) -> TypeId
impl<T> Borrow for Status
fn borrow(self: &Self) -> &T
impl<T> BorrowMut for Status
fn borrow_mut(self: &mut Self) -> &mut T
impl<T> From for Status
fn from(t: T) -> TReturns the argument unchanged.
impl<T, U> Into for Status
fn into(self: Self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom for Status
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto for Status
fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>