pub enum LbAlgorithm {
RoundRobin,
LeastConnections,
WeightedRoundRobin,
Random,
IpHash,
}Expand description
Load balancing algorithm.
Variants§
RoundRobin
Simple round-robin.
LeastConnections
Least active connections.
WeightedRoundRobin
Weighted round-robin.
Random
Pseudo-random selection.
IpHash
Hash of client IP.
Trait Implementations§
Source§impl Clone for LbAlgorithm
impl Clone for LbAlgorithm
Source§fn clone(&self) -> LbAlgorithm
fn clone(&self) -> LbAlgorithm
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LbAlgorithm
impl Debug for LbAlgorithm
Source§impl Default for LbAlgorithm
impl Default for LbAlgorithm
Source§fn default() -> LbAlgorithm
fn default() -> LbAlgorithm
Returns the “default value” for a type. Read more
Source§impl PartialEq for LbAlgorithm
impl PartialEq for LbAlgorithm
impl Copy for LbAlgorithm
impl Eq for LbAlgorithm
impl StructuralPartialEq for LbAlgorithm
Auto Trait Implementations§
impl Freeze for LbAlgorithm
impl RefUnwindSafe for LbAlgorithm
impl Send for LbAlgorithm
impl Sync for LbAlgorithm
impl Unpin for LbAlgorithm
impl UnwindSafe for LbAlgorithm
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)