pub struct CapturedFrame {
pub api_key: ApiKey,
pub version: ApiVersion,
pub is_request: bool,
pub body: Vec<u8>,
}Expand description
One captured frame, emitted by the relay to the recorder spool.
Fields§
§api_key: ApiKey§version: ApiVersion§is_request: bool§body: Vec<u8>Full frame body, that is the header and the message, without the 4-byte length prefix.
Implementations§
Source§impl CapturedFrame
impl CapturedFrame
Sourcepub fn spool_line(&self) -> String
pub fn spool_line(&self) -> String
The frame as one newline-terminated JSON record of the standalone tap’s spool, with the body in lowercase hex.
Trait Implementations§
Source§impl Clone for CapturedFrame
impl Clone for CapturedFrame
Source§fn clone(&self) -> CapturedFrame
fn clone(&self) -> CapturedFrame
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CapturedFrame
impl Debug for CapturedFrame
impl Eq for CapturedFrame
Source§impl PartialEq for CapturedFrame
impl PartialEq for CapturedFrame
Source§fn eq(&self, other: &CapturedFrame) -> bool
fn eq(&self, other: &CapturedFrame) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CapturedFrame
Auto Trait Implementations§
impl Freeze for CapturedFrame
impl RefUnwindSafe for CapturedFrame
impl Send for CapturedFrame
impl Sync for CapturedFrame
impl Unpin for CapturedFrame
impl UnsafeUnpin for CapturedFrame
impl UnwindSafe for CapturedFrame
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