Struct rustracing_jaeger::span::TraceId
source · pub struct TraceId {
pub high: u64,
pub low: u64,
}
Expand description
Unique 128bit identifier of a trace.
use rustracing_jaeger::span::TraceId;
let id = TraceId{ high: 0, low: 10 };
assert_eq!(id.to_string(), "a");
assert_eq!("a".parse::<TraceId>().unwrap(), id);
let id = TraceId{ high: 1, low: 2 };
assert_eq!(id.to_string(), "10000000000000002");
assert_eq!("10000000000000002".parse::<TraceId>().unwrap(), id);
Fields§
§high: u64
§low: u64
Implementations§
Trait Implementations§
source§impl Ord for TraceId
impl Ord for TraceId
source§impl PartialEq for TraceId
impl PartialEq for TraceId
source§impl PartialOrd for TraceId
impl PartialOrd for TraceId
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TraceId
impl Eq for TraceId
impl StructuralPartialEq for TraceId
Auto Trait Implementations§
impl Freeze for TraceId
impl RefUnwindSafe for TraceId
impl Send for TraceId
impl Sync for TraceId
impl Unpin for TraceId
impl UnwindSafe for TraceId
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