pub enum TerminalStrategy {
FirstPick,
Random,
RoundRobin,
LeastConnections,
}Expand description
Strategy for selecting a terminal upstream.
Variants§
FirstPick
Select first available upstream.
Random
Select a router plugin at random.
RoundRobin
Round-robin selection.
LeastConnections
Least connections strategy.
Trait Implementations§
Source§impl Clone for TerminalStrategy
impl Clone for TerminalStrategy
Source§fn clone(&self) -> TerminalStrategy
fn clone(&self) -> TerminalStrategy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TerminalStrategy
impl Debug for TerminalStrategy
Source§impl Default for TerminalStrategy
impl Default for TerminalStrategy
Source§fn default() -> TerminalStrategy
fn default() -> TerminalStrategy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TerminalStrategy
impl<'de> Deserialize<'de> for TerminalStrategy
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
impl Eq for TerminalStrategy
Source§impl PartialEq for TerminalStrategy
impl PartialEq for TerminalStrategy
Source§fn eq(&self, other: &TerminalStrategy) -> bool
fn eq(&self, other: &TerminalStrategy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TerminalStrategy
impl Serialize for TerminalStrategy
impl StructuralPartialEq for TerminalStrategy
Auto Trait Implementations§
impl Freeze for TerminalStrategy
impl RefUnwindSafe for TerminalStrategy
impl Send for TerminalStrategy
impl Sync for TerminalStrategy
impl Unpin for TerminalStrategy
impl UnsafeUnpin for TerminalStrategy
impl UnwindSafe for TerminalStrategy
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