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 the Option<ThreadId> can always be None, or

  • id.into::<u32>() is unique within a thread, and Option<ThreadId> is Some to disambiguate IDs across threads.

Required Methods

Implementors