pub enum RoutingMode {
Priority,
RoundRobin,
LatencyBased,
Random,
}Expand description
Routing mode enum for common strategies.
Variants§
Priority
Try providers in priority order
RoundRobin
Distribute requests evenly (round-robin)
LatencyBased
Route to provider with lowest latency
Random
Random selection
Implementations§
Source§impl RoutingMode
impl RoutingMode
Sourcepub fn description(&self) -> &str
pub fn description(&self) -> &str
Get a human-readable description.
Trait Implementations§
Source§impl Clone for RoutingMode
impl Clone for RoutingMode
Source§fn clone(&self) -> RoutingMode
fn clone(&self) -> RoutingMode
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 RoutingMode
impl Debug for RoutingMode
Source§impl Hash for RoutingMode
impl Hash for RoutingMode
Source§impl PartialEq for RoutingMode
impl PartialEq for RoutingMode
impl Copy for RoutingMode
impl Eq for RoutingMode
impl StructuralPartialEq for RoutingMode
Auto Trait Implementations§
impl Freeze for RoutingMode
impl RefUnwindSafe for RoutingMode
impl Send for RoutingMode
impl Sync for RoutingMode
impl Unpin for RoutingMode
impl UnwindSafe for RoutingMode
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