pub enum ConnectionSelectionStrategy {
RoundRobin,
LeastPending,
}Expand description
Strategy for selecting connections from the pool
Variants§
RoundRobin
Round-robin selection (default)
LeastPending
Select connection with least pending requests
Trait Implementations§
Source§impl Clone for ConnectionSelectionStrategy
impl Clone for ConnectionSelectionStrategy
Source§fn clone(&self) -> ConnectionSelectionStrategy
fn clone(&self) -> ConnectionSelectionStrategy
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 ConnectionSelectionStrategy
impl Debug for ConnectionSelectionStrategy
Source§impl Default for ConnectionSelectionStrategy
impl Default for ConnectionSelectionStrategy
Source§fn default() -> ConnectionSelectionStrategy
fn default() -> ConnectionSelectionStrategy
Returns the “default value” for a type. Read more
impl Copy for ConnectionSelectionStrategy
Auto Trait Implementations§
impl Freeze for ConnectionSelectionStrategy
impl RefUnwindSafe for ConnectionSelectionStrategy
impl Send for ConnectionSelectionStrategy
impl Sync for ConnectionSelectionStrategy
impl Unpin for ConnectionSelectionStrategy
impl UnwindSafe for ConnectionSelectionStrategy
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