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§
fn allocate( &self, requirements: &ResourceRequirements, available: &[AvailableResources], ) -> DeviceResult<ResourceAllocation>
fn get_strategy_name(&self) -> String
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".