pub struct PriorityScheduler { /* private fields */ }Expand description
Priority-based scheduler
Considers task priority when scheduling, favoring higher priority tasks.
Implementations§
Trait Implementations§
Source§impl Debug for PriorityScheduler
impl Debug for PriorityScheduler
Source§impl Default for PriorityScheduler
impl Default for PriorityScheduler
Source§impl Scheduler for PriorityScheduler
impl Scheduler for PriorityScheduler
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 PriorityScheduler
impl RefUnwindSafe for PriorityScheduler
impl Send for PriorityScheduler
impl Sync for PriorityScheduler
impl Unpin for PriorityScheduler
impl UnwindSafe for PriorityScheduler
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