pub enum NextStatus {
Item(usize),
End,
TooSmall(usize),
SerErr,
}Expand description
Outcome of StreamState::next_into — mapped to FFI status codes by the
macro-generated next shim.
Variants§
Item(usize)
An item was written; payload is buf[..n].
End
No more items.
TooSmall(usize)
The buffer was too small; usize is the size required. The item is
retained for the next call (no item lost on grow-and-retry).
SerErr
Serializing the item failed.
Auto Trait Implementations§
impl Freeze for NextStatus
impl RefUnwindSafe for NextStatus
impl Send for NextStatus
impl Sync for NextStatus
impl Unpin for NextStatus
impl UnsafeUnpin for NextStatus
impl UnwindSafe for NextStatus
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