pub enum Push<'a> {
Pending,
Block(&'a [u8]),
Overflow,
}Expand description
Outcome of pushing one byte into a Deframer.
Variants§
Pending
Mid-frame.
Block(&'a [u8])
A complete COBS block (delimiter stripped), ready for
decode_frame.
Overflow
A block exceeded the buffer and was dropped.
Trait Implementations§
impl<'a> Eq for Push<'a>
impl<'a> StructuralPartialEq for Push<'a>
Auto Trait Implementations§
impl<'a> Freeze for Push<'a>
impl<'a> RefUnwindSafe for Push<'a>
impl<'a> Send for Push<'a>
impl<'a> Sync for Push<'a>
impl<'a> Unpin for Push<'a>
impl<'a> UnsafeUnpin for Push<'a>
impl<'a> UnwindSafe for Push<'a>
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