pub struct AffinityScheduler { /* private fields */ }Expand description
Affinity-based scheduler
Schedules tasks with affinity constraints (e.g., locality, specific node labels).
Implementations§
Trait Implementations§
Source§impl Debug for AffinityScheduler
impl Debug for AffinityScheduler
Source§impl Default for AffinityScheduler
impl Default for AffinityScheduler
Source§impl Scheduler for AffinityScheduler
impl Scheduler for AffinityScheduler
Source§fn schedule<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
task: &'life1 Task,
nodes: &'life2 [Node],
) -> Pin<Box<dyn Future<Output = PolarisResult<NodeId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn schedule<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
task: &'life1 Task,
nodes: &'life2 [Node],
) -> Pin<Box<dyn Future<Output = PolarisResult<NodeId>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Schedule a task on one of the available nodes Read more
Auto Trait Implementations§
impl Freeze for AffinityScheduler
impl RefUnwindSafe for AffinityScheduler
impl Send for AffinityScheduler
impl Sync for AffinityScheduler
impl Unpin for AffinityScheduler
impl UnwindSafe for AffinityScheduler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more