pub enum Next {
Record(MetadataUpdate, usize),
Incomplete,
Other,
Invalid,
}Expand description
Result of inspecting the start of a TCP feed buffer for a meta/1 record.
Variants§
Record(MetadataUpdate, usize)
A complete record and the total number of bytes consumed.
Incomplete
A meta/1 record that is cut before its end. The caller reads more bytes.
Other
Not a meta/1 record (starts with another tag or empty slice).
Invalid
Malformed meta/1 record (oversized field or invalid UTF-8).
Trait Implementations§
impl StructuralPartialEq for Next
Auto Trait Implementations§
impl Forget for Next
impl Freeze for Next
impl Move for Next
impl RefUnwindSafe for Next
impl Send for Next
impl Sync for Next
impl Unpin for Next
impl UnsafeUnpin for Next
impl UnwindSafe for Next
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