pub enum InputReadOutcome {
Bytes(NonZeroUsize),
Pending(PendingReason),
Eof,
}Expand description
Outcome of a DecoderInput::try_read call.
Mirrors the kithara_stream::ReadOutcome shape but operates on
the input-byte plane. Bytes carries a NonZeroUsize count;
Pending carries the typed PendingReason recovered from
Stream’s impl Read (or synthesised from io::ErrorKind for
non-stream inputs); Eof is terminal.
Variants§
Trait Implementations§
Source§impl Clone for InputReadOutcome
impl Clone for InputReadOutcome
Source§fn clone(&self) -> InputReadOutcome
fn clone(&self) -> InputReadOutcome
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for InputReadOutcome
impl Debug for InputReadOutcome
Source§impl PartialEq for InputReadOutcome
impl PartialEq for InputReadOutcome
Source§fn eq(&self, other: &InputReadOutcome) -> bool
fn eq(&self, other: &InputReadOutcome) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for InputReadOutcome
impl Eq for InputReadOutcome
impl StructuralPartialEq for InputReadOutcome
Auto Trait Implementations§
impl Freeze for InputReadOutcome
impl RefUnwindSafe for InputReadOutcome
impl Send for InputReadOutcome
impl Sync for InputReadOutcome
impl Unpin for InputReadOutcome
impl UnsafeUnpin for InputReadOutcome
impl UnwindSafe for InputReadOutcome
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