pub(crate) enum Written {
Bytes(usize),
Nothing,
Terminated {
forwarded: usize,
code: u64,
},
}Expand description
What handing one unit to the transport did.
Variants§
Bytes(usize)
This many bytes were handed to the transport.
Nothing
Nothing was written — an elided unit holding its ordering slot.
Terminated
A terminal fired. The destination is reset; nothing further may be written to it.
Trait Implementations§
impl Copy for Written
impl Eq for Written
impl StructuralPartialEq for Written
Auto Trait Implementations§
impl Freeze for Written
impl RefUnwindSafe for Written
impl Send for Written
impl Sync for Written
impl Unpin for Written
impl UnsafeUnpin for Written
impl UnwindSafe for Written
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