pub enum RoutingMode {
    Standard,
    PerCommand,
    Hybrid,
}Expand description
Routing mode for the proxy
Variants§
Standard
Standard 1:1 mode - each client gets a dedicated backend connection
PerCommand
Per-command routing - each command can use a different backend (stateless only)
Hybrid
Hybrid mode - starts in per-command routing, auto-switches to stateful on first stateful command
Implementations§
Source§impl RoutingMode
 
impl RoutingMode
Sourcepub fn supports_per_command_routing(&self) -> bool
 
pub fn supports_per_command_routing(&self) -> bool
Check if this mode supports per-command routing
Sourcepub fn supports_stateful_commands(&self) -> bool
 
pub fn supports_stateful_commands(&self) -> bool
Check if this mode can handle stateful commands
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§impl<'de> Deserialize<'de> for RoutingMode
 
impl<'de> Deserialize<'de> for RoutingMode
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 RoutingMode
 
impl PartialEq for RoutingMode
Source§impl Serialize for RoutingMode
 
impl Serialize 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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.