Skip to main content

PlacementPolicy

Trait PlacementPolicy 

Source
pub trait PlacementPolicy:
    Send
    + Sync
    + 'static {
    // Required method
    fn choose(
        &self,
        hints: &PlacementHints,
        candidates: &[(u32, &DeviceLoad)],
    ) -> Option<u32>;
}

Required Methods§

Source

fn choose( &self, hints: &PlacementHints, candidates: &[(u32, &DeviceLoad)], ) -> Option<u32>

Implementors§