pub struct ParsedFrame {
pub message: AnyControlMessage,
pub raw_bytes: Option<Bytes>,
}Expand description
A successfully parsed control frame.
raw_bytes is populated only when the parser was constructed with
ControlStreamParser::new_capturing; the default observation-only
parser leaves it as None to avoid copying bytes that already flow
through the forwarding path.
Fields§
§message: AnyControlMessageThe decoded control message.
raw_bytes: Option<Bytes>The original wire bytes of this frame — only set when the parser is in capturing mode (used by hook-driven mutation).
Trait Implementations§
Source§impl Clone for ParsedFrame
impl Clone for ParsedFrame
Source§fn clone(&self) -> ParsedFrame
fn clone(&self) -> ParsedFrame
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !Freeze for ParsedFrame
impl RefUnwindSafe for ParsedFrame
impl Send for ParsedFrame
impl Sync for ParsedFrame
impl Unpin for ParsedFrame
impl UnsafeUnpin for ParsedFrame
impl UnwindSafe for ParsedFrame
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