pub struct TraceParent {
pub trace_id: TraceId,
pub span_id: SpanId,
pub sampled: bool,
}Expand description
A parsed W3C traceparent header (00-<trace-id>-<parent-id>-<flags>).
Fields§
§trace_id: TraceId§span_id: SpanId§sampled: boolImplementations§
Trait Implementations§
Source§impl Clone for TraceParent
impl Clone for TraceParent
impl Copy for TraceParent
Source§impl Debug for TraceParent
impl Debug for TraceParent
impl Eq for TraceParent
Source§impl PartialEq for TraceParent
impl PartialEq for TraceParent
impl StructuralPartialEq for TraceParent
Auto Trait Implementations§
impl Forget for TraceParent
impl Freeze for TraceParent
impl Move for TraceParent
impl RefUnwindSafe for TraceParent
impl Send for TraceParent
impl Sync for TraceParent
impl Unpin for TraceParent
impl UnsafeUnpin for TraceParent
impl UnwindSafe for TraceParent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.