pub enum Outcome {
Message(RawMessage),
Garbled {
reason: GarbledReason,
bytes: Bytes,
},
Incomplete,
}Expand description
One step of reading the stream.
Variants§
Message(RawMessage)
A complete, checksum-verified message, consumed from the buffer.
Garbled
Bytes that cannot begin a message, consumed from the buffer.
Incomplete
The buffer holds no complete message, feed more bytes.
Auto Trait Implementations§
impl !Freeze for Outcome
impl RefUnwindSafe for Outcome
impl Send for Outcome
impl Sync for Outcome
impl Unpin for Outcome
impl UnsafeUnpin for Outcome
impl UnwindSafe for Outcome
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