pub enum ReadStrategy {
RoundRobin,
Random,
LeastConnections,
}Expand description
How read queries are distributed across replicas.
Variants§
RoundRobin
Cycle through replicas in order (default).
Random
Pick a replica at random.
LeastConnections
Route to the replica with the fewest active connections (requires runtime support in the execution layer).
Trait Implementations§
Source§impl Clone for ReadStrategy
impl Clone for ReadStrategy
Source§fn clone(&self) -> ReadStrategy
fn clone(&self) -> ReadStrategy
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 moreSource§impl Debug for ReadStrategy
impl Debug for ReadStrategy
Source§impl Default for ReadStrategy
impl Default for ReadStrategy
Source§fn default() -> ReadStrategy
fn default() -> ReadStrategy
Returns the “default value” for a type. Read more
Source§impl PartialEq for ReadStrategy
impl PartialEq for ReadStrategy
Source§fn eq(&self, other: &ReadStrategy) -> bool
fn eq(&self, other: &ReadStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for ReadStrategy
impl Eq for ReadStrategy
impl StructuralPartialEq for ReadStrategy
Auto Trait Implementations§
impl Freeze for ReadStrategy
impl RefUnwindSafe for ReadStrategy
impl Send for ReadStrategy
impl Sync for ReadStrategy
impl Unpin for ReadStrategy
impl UnsafeUnpin for ReadStrategy
impl UnwindSafe for ReadStrategy
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