pub enum LoadBalancingStrategy {
RoundRobin,
Random,
LeastLoaded,
}Expand description
Load balancing strategy for task pools
Variants§
RoundRobin
Round-robin: Distribute tasks evenly in order
Random
Random: Select a random worker from the pool
LeastLoaded
Least loaded: Select the worker with fewest active tasks (requires tracking)
Trait Implementations§
Source§impl Clone for LoadBalancingStrategy
impl Clone for LoadBalancingStrategy
impl Copy for LoadBalancingStrategy
Source§impl Debug for LoadBalancingStrategy
impl Debug for LoadBalancingStrategy
Auto Trait Implementations§
impl Freeze for LoadBalancingStrategy
impl RefUnwindSafe for LoadBalancingStrategy
impl Send for LoadBalancingStrategy
impl Sync for LoadBalancingStrategy
impl Unpin for LoadBalancingStrategy
impl UnsafeUnpin for LoadBalancingStrategy
impl UnwindSafe for LoadBalancingStrategy
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