pub struct TraceContext {
pub trace_id: [u8; 16],
pub span_id: [u8; 8],
pub flags: u8,
}Expand description
A trace id, a span id and the trace flags, in the layout of the W3C Trace
Context traceparent header without its version byte.
The value is not validated. size_of::<TraceContext>() is 25 bytes and
size_of::<Option<TraceContext>>() is 26 bytes, both with alignment 1.
Fields§
§trace_id: [u8; 16]The identifier of the whole trace.
span_id: [u8; 8]The identifier of the span that sent the call or raised the event.
flags: u8The trace flags byte, carried as given.
Trait Implementations§
Source§impl Clone for TraceContext
impl Clone for TraceContext
impl Copy for TraceContext
Source§impl Debug for TraceContext
impl Debug for TraceContext
impl Eq for TraceContext
Source§impl Hash for TraceContext
impl Hash for TraceContext
Source§impl PartialEq for TraceContext
impl PartialEq for TraceContext
impl StructuralPartialEq for TraceContext
Auto Trait Implementations§
impl Freeze for TraceContext
impl RefUnwindSafe for TraceContext
impl Send for TraceContext
impl Sync for TraceContext
impl Unpin for TraceContext
impl UnsafeUnpin for TraceContext
impl UnwindSafe for TraceContext
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