pub enum Decoded {
Complete {
frame: Value,
consumed: usize,
},
NeedMore(usize),
}Expand description
What decoding the head of a buffer found.
Variants§
Complete
A whole frame, and how many bytes of the buffer it took.
NeedMore(usize)
At least this many more bytes are needed before trying again.
Trait Implementations§
impl StructuralPartialEq for Decoded
Auto Trait Implementations§
impl Freeze for Decoded
impl RefUnwindSafe for Decoded
impl Send for Decoded
impl Sync for Decoded
impl Unpin for Decoded
impl UnsafeUnpin for Decoded
impl UnwindSafe for Decoded
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