pub struct LoadBalancerConfig {
pub strategy: Strategy,
pub health_check_interval_ms: u64,
pub circuit_recovery_time_ms: u64,
pub max_connections_per_endpoint: u32,
pub zone_aware: bool,
pub zone_fallback: bool,
pub metrics_stale_after_ms: u64,
}Expand description
Load balancer configuration
Fields§
§strategy: StrategyLoad balancing strategy
health_check_interval_ms: u64Health check interval
circuit_recovery_time_ms: u64Circuit breaker recovery time
max_connections_per_endpoint: u32Maximum connections per endpoint
zone_aware: boolEnable zone-aware routing
zone_fallback: boolFallback to any available if preferred zone unavailable
metrics_stale_after_ms: u64Metrics staleness threshold
Trait Implementations§
Source§impl Clone for LoadBalancerConfig
impl Clone for LoadBalancerConfig
Source§fn clone(&self) -> LoadBalancerConfig
fn clone(&self) -> LoadBalancerConfig
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 LoadBalancerConfig
impl Debug for LoadBalancerConfig
Source§impl Default for LoadBalancerConfig
impl Default for LoadBalancerConfig
Source§impl<'de> Deserialize<'de> for LoadBalancerConfig
impl<'de> Deserialize<'de> for LoadBalancerConfig
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
Auto Trait Implementations§
impl Freeze for LoadBalancerConfig
impl RefUnwindSafe for LoadBalancerConfig
impl Send for LoadBalancerConfig
impl Sync for LoadBalancerConfig
impl Unpin for LoadBalancerConfig
impl UnsafeUnpin for LoadBalancerConfig
impl UnwindSafe for LoadBalancerConfig
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