pub enum Stream<'a> {
Complete {
line: PacketLineRef<'a>,
bytes_consumed: usize,
},
Incomplete {
bytes_needed: usize,
},
}
Expand description
A utility return type to support incremental parsing of packet lines.
Variants§
Complete
Indicate a single packet line was parsed completely
Fields
§
line: PacketLineRef<'a>
The parsed packet line
Incomplete
A packet line could not yet be parsed due to missing bytes
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Stream<'a>
impl<'a> RefUnwindSafe for Stream<'a>
impl<'a> Send for Stream<'a>
impl<'a> Sync for Stream<'a>
impl<'a> Unpin for Stream<'a>
impl<'a> UnwindSafe for Stream<'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