Skip to main content

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§

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§