pub struct RoundRobinScheduler { /* private fields */ }Expand description
Round-robin scheduler
Distributes tasks evenly across nodes in a circular fashion.
Implementations§
Source§impl RoundRobinScheduler
impl RoundRobinScheduler
Sourcepub fn new() -> RoundRobinScheduler
pub fn new() -> RoundRobinScheduler
Create a new round-robin scheduler
Trait Implementations§
Source§impl Debug for RoundRobinScheduler
impl Debug for RoundRobinScheduler
Source§impl Default for RoundRobinScheduler
impl Default for RoundRobinScheduler
Source§fn default() -> RoundRobinScheduler
fn default() -> RoundRobinScheduler
Returns the “default value” for a type. Read more
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 = Result<NodeId, PolarisError>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
RoundRobinScheduler: 'async_trait,
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,
RoundRobinScheduler: '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