pub enum Decoded<'a> {
Item(IltpItem),
RecordStart {
label: RecordLabel,
prefix: &'a [u8],
canonical_len: usize,
},
RecordData(&'a [u8]),
RecordEnd(RecordLabel, ValidatedHeader),
}Expand description
One decoded event of peer input; see IltpCodec::decode.
Variants§
Item(IltpItem)
A complete preface, line item or list item.
RecordStart
A record item’s prefix is complete and well formed and its canonical length is known. Neither is evidence that the record is valid.
RecordData(&'a [u8])
The record’s next data bytes.
RecordEnd(RecordLabel, ValidatedHeader)
The record’s bytes are complete and verified and the LF after it consumed. It is reported before any byte of the next item is decoded.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Decoded<'a>
impl<'a> RefUnwindSafe for Decoded<'a>
impl<'a> Send for Decoded<'a>
impl<'a> Sync for Decoded<'a>
impl<'a> Unpin for Decoded<'a>
impl<'a> UnsafeUnpin for Decoded<'a>
impl<'a> UnwindSafe for Decoded<'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