id

Function id 

Source
pub unsafe fn id(thread: Thread) -> Option<ThreadId>
Available on crate features thread and take-charge only.
Expand description

Return the id of a thread, or None if the thread has exited.

ยงSafety

thread must point to a valid thread record.