pub enum SinkResult {
Complete(Vec<Frame>),
MidFrame,
}Expand description
The result of feeding bytes to Decoder::sink.
Variants§
Complete(Vec<Frame>)
All bytes were consumed and every frame found is complete. Contains the decoded frames.
MidFrame
The last frame in the supplied bytes is incomplete. The decoder has buffered the partial state; supply more bytes to finish it.
Auto Trait Implementations§
impl Freeze for SinkResult
impl RefUnwindSafe for SinkResult
impl Send for SinkResult
impl Sync for SinkResult
impl Unpin for SinkResult
impl UnsafeUnpin for SinkResult
impl UnwindSafe for SinkResult
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