Trait z::traits::TraceId
[−]
[src]
pub trait TraceId: Copy + Into<u32> + Into<Option<ThreadId>> { fn new_id() -> Self; }
The pair of (id.into<u32>, id.into<Option<ThreadId>>())
must be unique
across all IDs of a particalur TraceId
type. In other words, either:
id.into::<u32>()
is unique and theOption<ThreadId>
can always beNone
, orid.into::<u32>()
is unique within a thread, andOption<ThreadId>
isSome
to disambiguate IDs across threads.
Required Methods
fn new_id() -> Self
Implementors
impl TraceId for SimpleTraceId
impl TraceId for ThreadAndLocalId