1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
//! Placement preference vocabulary. use super::{LocalityDomainId, MemoryTier, NumaNodeId}; /// Placement preference supplied by allocation or scheduling callers. #[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)] pub enum PlacementHint { /// Use the caller's current locality. #[default] Current, /// Prefer the specified NUMA node. Numa(NumaNodeId), /// Prefer the specified locality domain. Domain(LocalityDomainId), /// Prefer the specified memory tier. Tier(MemoryTier), /// No locality preference. Any, }