pub trait Affinity {
// Required methods
fn pin_to_core(&self, core_id: u32);
fn set_numa_node(&self, node_id: u32);
}Expand description
Optional affinities/NUMA hints (P2).
Does not enter StepContext. Placement and topology hints are owned
by the runtime/scheduler, not by nodes.
Required Methods§
Sourcefn pin_to_core(&self, core_id: u32)
fn pin_to_core(&self, core_id: u32)
Pin the current worker to a logical core or group.
Sourcefn set_numa_node(&self, node_id: u32)
fn set_numa_node(&self, node_id: u32)
Provide NUMA node hint.