ResourceAllocationStrategy

Trait ResourceAllocationStrategy 

Source
pub trait ResourceAllocationStrategy {
    // Required methods
    fn allocate(
        &self,
        requirements: &ResourceRequirements,
        available: &[AvailableResources],
    ) -> DeviceResult<ResourceAllocation>;
    fn get_strategy_name(&self) -> String;
}
Expand description

Resource allocation strategy trait

Required Methods§

Implementors§