pub enum LoadBalancingStrategy {
RoundRobin,
Random,
LeastConnections,
Weighted,
}Expand description
Load balancing strategy
Variants§
RoundRobin
Round-robin distribution
Random
Random selection
LeastConnections
Least connections (select endpoint with fewest active connections)
Weighted
Weighted distribution (based on endpoint weights)
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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LoadBalancingStrategy
impl Debug for LoadBalancingStrategy
Source§impl PartialEq for LoadBalancingStrategy
impl PartialEq for LoadBalancingStrategy
impl Copy for LoadBalancingStrategy
impl Eq for LoadBalancingStrategy
impl StructuralPartialEq 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 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