pub trait AllocationStrategy: Debug {
// Required methods
fn allocate_resources(
&self,
request: &ExecutionRequest,
available_resources: &HashMap<NodeId, AvailableResources>,
) -> Result<AllocationPlan>;
fn deallocate_resources(&self, allocation: &AllocationPlan) -> Result<()>;
fn estimate_allocation_time(&self, request: &ExecutionRequest) -> Duration;
}Expand description
Trait for resource allocation strategies