pub struct TraceHeader {
pub protocol: String,
pub perspective: Perspective,
pub detail: DetailLevel,
pub start_time: u64,
pub end_time: Option<u64>,
pub transport: Option<String>,
pub source: Option<String>,
pub endpoint: Option<String>,
pub session_id: Option<String>,
pub custom: Option<BTreeMap<String, Value>>,
}Expand description
Session metadata header written at the start of a .moqtrace file.
Fields§
§protocol: StringMoQT version identifier (e.g. "moq-transport-14").
perspective: PerspectiveRecording viewpoint.
detail: DetailLevelDetail level.
start_time: u64Recording start time (Unix epoch milliseconds).
end_time: Option<u64>Recording end time (Unix epoch milliseconds). Set when trace is finalized.
transport: Option<String>Transport type (e.g. "webtransport", "raw-quic").
source: Option<String>Software that produced the trace.
endpoint: Option<String>Remote peer URI.
session_id: Option<String>Opaque session correlation identifier.
custom: Option<BTreeMap<String, Value>>User-defined metadata.
Trait Implementations§
Source§impl Clone for TraceHeader
impl Clone for TraceHeader
Source§fn clone(&self) -> TraceHeader
fn clone(&self) -> TraceHeader
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 moreSource§impl Debug for TraceHeader
impl Debug for TraceHeader
Source§impl From<&TraceHeader> for Value
impl From<&TraceHeader> for Value
Source§fn from(h: &TraceHeader) -> Self
fn from(h: &TraceHeader) -> Self
Converts to this type from the input type.
Source§impl PartialEq for TraceHeader
impl PartialEq for TraceHeader
Source§impl TryFrom<Value> for TraceHeader
impl TryFrom<Value> for TraceHeader
Source§type Error = MoqTraceError
type Error = MoqTraceError
The type returned in the event of a conversion error.
impl StructuralPartialEq for TraceHeader
Auto Trait Implementations§
impl Freeze for TraceHeader
impl RefUnwindSafe for TraceHeader
impl Send for TraceHeader
impl Sync for TraceHeader
impl Unpin for TraceHeader
impl UnsafeUnpin for TraceHeader
impl UnwindSafe for TraceHeader
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