Skip to main content

worker_info

Function worker_info 

Source
pub fn worker_info() -> WorkerInfo
Expand description

Report the current worker identity.

The per-thread binding set by with_worker wins; otherwise RANK/WORLD_SIZE and WORKER/NUM_WORKERS are read from the environment. See crate::workers for how the binding is stored on targets without thread-local storage.