pub enum DynamicRoutingStrategy {
ByLatency,
RoundRobin,
}Expand description
Strategy for DynamicRouteProvider’s routing mechanism.
Variants§
ByLatency
Prefer nodes with low latency.
RoundRobin
Cycle through discovered nodes with no regard for latency.
Trait Implementations§
Source§impl Clone for DynamicRoutingStrategy
impl Clone for DynamicRoutingStrategy
Source§fn clone(&self) -> DynamicRoutingStrategy
fn clone(&self) -> DynamicRoutingStrategy
Returns a copy 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 DynamicRoutingStrategy
impl Debug for DynamicRoutingStrategy
Source§impl Hash for DynamicRoutingStrategy
impl Hash for DynamicRoutingStrategy
Source§impl PartialEq for DynamicRoutingStrategy
impl PartialEq for DynamicRoutingStrategy
impl Copy for DynamicRoutingStrategy
impl Eq for DynamicRoutingStrategy
impl StructuralPartialEq for DynamicRoutingStrategy
Auto Trait Implementations§
impl Freeze for DynamicRoutingStrategy
impl RefUnwindSafe for DynamicRoutingStrategy
impl Send for DynamicRoutingStrategy
impl Sync for DynamicRoutingStrategy
impl Unpin for DynamicRoutingStrategy
impl UnwindSafe for DynamicRoutingStrategy
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