pub enum RoutingStrategy {
RoundRobin,
LeastLatency,
Random,
Capability(ProviderCapability),
First,
}Expand description
Strategy for routing requests to providers.
Variants§
RoundRobin
Round-robin between providers
LeastLatency
Route to provider with lowest latency
Random
Random selection
Capability(ProviderCapability)
Route based on capability
First
Always use first available provider
Implementations§
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 ComposeSchema for RoutingStrategy
impl ComposeSchema for RoutingStrategy
Source§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
Source§impl<'de> Deserialize<'de> for RoutingStrategy
impl<'de> Deserialize<'de> for RoutingStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for RoutingStrategy
impl PartialEq for RoutingStrategy
Source§impl Serialize for RoutingStrategy
impl Serialize for RoutingStrategy
Source§impl ToSchema for RoutingStrategy
impl ToSchema for RoutingStrategy
impl Eq for RoutingStrategy
impl StructuralPartialEq for RoutingStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.