pub struct ThreadId {
pub process: ProcessId,
/* private fields */
}Expand description
A globally-unique id identifying a thread within a specific process.
The primary purpose of this id is to allow the consumer of telemetry messages to associate spans with the callstack they came from to reconstruct parent-child relationships. On a normal operating system this is the thread, on other systems it should be whatever is the closest equivalent, e.g. for FreeRTOS it would be a task. On a single threaded bare-metal system it would be a constant as there is only the one callstack.
Fields§
§process: ProcessIdThe globally-unique id for the process this thread is within.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ThreadId
impl<'de> Deserialize<'de> for ThreadId
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for ThreadId
impl Ord for ThreadId
Source§impl PartialOrd for ThreadId
impl PartialOrd for ThreadId
impl Copy for ThreadId
impl Eq for ThreadId
impl StructuralPartialEq for ThreadId
Auto Trait Implementations§
impl Freeze for ThreadId
impl RefUnwindSafe for ThreadId
impl Send for ThreadId
impl Sync for ThreadId
impl Unpin for ThreadId
impl UnwindSafe for ThreadId
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