pub enum LoadBalancingStrategy {
RoundRobin,
Random,
LeastLoaded,
}Expand description
Load balancing strategy for distributing messages across workers.
Variants§
RoundRobin
Distribute messages in round-robin fashion.
Random
Select a random worker for each message.
LeastLoaded
Select the worker with the least active tasks.
Trait Implementations§
Source§impl Clone for LoadBalancingStrategy
impl Clone for LoadBalancingStrategy
Source§fn clone(&self) -> LoadBalancingStrategy
fn clone(&self) -> LoadBalancingStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LoadBalancingStrategy
Source§impl Debug for LoadBalancingStrategy
impl Debug for LoadBalancingStrategy
Source§impl Default for LoadBalancingStrategy
impl Default for LoadBalancingStrategy
Source§fn default() -> LoadBalancingStrategy
fn default() -> LoadBalancingStrategy
Returns the “default value” for a type. Read more
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