pub enum FrameScan {
Complete {
len: usize,
},
Incomplete,
Desync,
}Expand description
Result of scanning a byte buffer for a leading frame without allocating.
Variants§
Complete
Exactly one complete frame of len bytes starts at offset 0.
Incomplete
Valid magic header, but the full frame has not arrived yet.
Desync
Offset 0 does not match the magic header.
Trait Implementations§
impl Copy for FrameScan
impl Eq for FrameScan
impl StructuralPartialEq for FrameScan
Auto Trait Implementations§
impl Freeze for FrameScan
impl RefUnwindSafe for FrameScan
impl Send for FrameScan
impl Sync for FrameScan
impl Unpin for FrameScan
impl UnsafeUnpin for FrameScan
impl UnwindSafe for FrameScan
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