pub struct Frame {
pub direction: Direction,
pub byte_count: usize,
pub transport: Transport,
pub address: String,
pub timestamp: Timestamp,
pub content: Vec<u8>,
}Expand description
A single frame from the dump file (Level 1 output).
Each frame corresponds to one send() or recv() call logged by
mod_sofia. The byte_count field is the value FreeSWITCH wrote in the
header; content is the actual payload between boundaries.
Fields§
§direction: DirectionWhether this frame was received or sent.
byte_count: usizeByte count declared in the frame header.
transport: TransportTransport protocol.
address: StringRemote address as ip:port (e.g., "10.0.0.1:5060").
timestamp: TimestampWhen this frame was logged.
content: Vec<u8>Raw frame payload.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Frame
impl RefUnwindSafe for Frame
impl Send for Frame
impl Sync for Frame
impl Unpin for Frame
impl UnsafeUnpin for Frame
impl UnwindSafe for Frame
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