pub enum PoolStrategy {
RoundRobin,
Random,
}Expand description
PoolStrategy controls how LogServerPool::select picks the next server.
Variants§
RoundRobin
RoundRobin cycles through healthy servers in order, distributing load evenly.
Random
Random picks a healthy server at random on each call to select.
Trait Implementations§
Source§impl Clone for PoolStrategy
impl Clone for PoolStrategy
Source§fn clone(&self) -> PoolStrategy
fn clone(&self) -> PoolStrategy
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 PoolStrategy
impl Debug for PoolStrategy
Source§impl From<u32> for PoolStrategy
impl From<u32> for PoolStrategy
Source§impl PartialEq for PoolStrategy
impl PartialEq for PoolStrategy
impl Copy for PoolStrategy
impl Eq for PoolStrategy
impl StructuralPartialEq for PoolStrategy
Auto Trait Implementations§
impl Freeze for PoolStrategy
impl RefUnwindSafe for PoolStrategy
impl Send for PoolStrategy
impl Sync for PoolStrategy
impl Unpin for PoolStrategy
impl UnsafeUnpin for PoolStrategy
impl UnwindSafe for PoolStrategy
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