pub struct RoundRobinScheduler { /* private fields */ }Expand description
Round-robin scheduler
Distributes tasks evenly across nodes in a circular fashion.
Implementations§
Trait Implementations§
Source§impl Debug for RoundRobinScheduler
impl Debug for RoundRobinScheduler
Source§impl Default for RoundRobinScheduler
impl Default for RoundRobinScheduler
Source§impl Scheduler for RoundRobinScheduler
impl Scheduler for RoundRobinScheduler
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 RoundRobinScheduler
impl RefUnwindSafe for RoundRobinScheduler
impl Send for RoundRobinScheduler
impl Sync for RoundRobinScheduler
impl Unpin for RoundRobinScheduler
impl UnwindSafe for RoundRobinScheduler
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