pub enum RoutingStrategy {
RoundRobin,
LeastLatency,
LeastConnections,
Weighted,
Random,
Primary,
}Expand description
Routing strategy for the provider pool.
Variants§
RoundRobin
Simple round-robin distribution
LeastLatency
Route to the deployment with lowest latency
LeastConnections
Route to the deployment with fewest in-flight requests
Weighted
Weighted random distribution based on weights
Random
Random distribution
Primary
Use primary (lowest priority), failover on error
Trait Implementations§
Source§impl Clone for RoutingStrategy
impl Clone for RoutingStrategy
Source§fn clone(&self) -> RoutingStrategy
fn clone(&self) -> RoutingStrategy
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 RoutingStrategy
impl Debug for RoutingStrategy
Source§impl Default for RoutingStrategy
impl Default for RoutingStrategy
Source§fn default() -> RoutingStrategy
fn default() -> RoutingStrategy
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RoutingStrategy
impl RefUnwindSafe for RoutingStrategy
impl Send for RoutingStrategy
impl Sync for RoutingStrategy
impl Unpin for RoutingStrategy
impl UnwindSafe for RoutingStrategy
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