pub trait Scheduler: Send + Sync {
// Required methods
fn schedule<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
task: &'life1 Task,
nodes: &'life2 [Node],
) -> Pin<Box<dyn Future<Output = Result<NodeId, PolarisError>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait;
fn name(&self) -> &str;
}Expand description
Trait for implementing custom schedulers