Skip to main content

id

Function id 

Source
pub fn id() -> Id
Expand description

The id of the task this code runs in.

§Panics

Outside a task: in block_on’s own future, or on a blocking-pool thread. try_id answers None there instead.