pub enum RoutingMode {
Direct,
RoundRobin,
Latency(LatencyRouterConfig),
Cost(CostRouterConfig),
Fallback(FallbackRouterConfig),
}Expand description
Routing modes supported by the core client.
Variants§
Direct
Direct execution against the first provider.
RoundRobin
Round-robin routing across providers.
Latency(LatencyRouterConfig)
Latency-based routing with configurable smoothing.
Cost(CostRouterConfig)
Cost-based routing with per-provider costs.
Fallback(FallbackRouterConfig)
Fallback routing (try providers in order).
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 Default for RoutingMode
impl Default for RoutingMode
Source§fn default() -> RoutingMode
fn default() -> RoutingMode
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RoutingMode
impl RefUnwindSafe for RoutingMode
impl Send for RoutingMode
impl Sync for RoutingMode
impl Unpin for RoutingMode
impl UnsafeUnpin 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