pub enum DataParseResult {
Header(DataStreamHeaderKind),
Object(AnyObjectHeader),
NeedMore,
Error(String),
}Expand description
Result of parsing data stream bytes.
The proxy forwards data stream bytes verbatim; raw wire bytes for headers are not exposed here because nothing in the forwarding path needs them. If byte-level mutation of data streams is ever required, add a dedicated variant or a capturing parser mode.
Variants§
Header(DataStreamHeaderKind)
A stream header was parsed.
Object(AnyObjectHeader)
An object header was parsed.
NeedMore
Need more data.
Error(String)
Parse error (non-fatal — forwarding continues).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DataParseResult
impl RefUnwindSafe for DataParseResult
impl Send for DataParseResult
impl Sync for DataParseResult
impl Unpin for DataParseResult
impl UnsafeUnpin for DataParseResult
impl UnwindSafe for DataParseResult
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