pub struct ResilientClientConfig {Show 13 fields
pub bootstrap_servers: Vec<String>,
pub pool_size: usize,
pub retry_max_attempts: u32,
pub retry_initial_delay: Duration,
pub retry_max_delay: Duration,
pub retry_multiplier: f64,
pub circuit_breaker_threshold: u32,
pub circuit_breaker_timeout: Duration,
pub circuit_breaker_success_threshold: u32,
pub connection_timeout: Duration,
pub request_timeout: Duration,
pub health_check_interval: Duration,
pub health_check_enabled: bool,
}Expand description
Configuration for the resilient client
Fields§
§bootstrap_servers: Vec<String>Bootstrap servers (host:port)
pool_size: usizeConnection pool size per server
retry_max_attempts: u32Maximum retry attempts
retry_initial_delay: DurationInitial retry delay
retry_max_delay: DurationMaximum retry delay
retry_multiplier: f64Retry backoff multiplier
circuit_breaker_threshold: u32Circuit breaker failure threshold
circuit_breaker_timeout: DurationCircuit breaker recovery timeout
circuit_breaker_success_threshold: u32Circuit breaker half-open success threshold
connection_timeout: DurationConnection timeout
request_timeout: DurationRequest timeout
health_check_interval: DurationHealth check interval
health_check_enabled: boolEnable automatic health checking
Implementations§
Source§impl ResilientClientConfig
impl ResilientClientConfig
Sourcepub fn builder() -> ResilientClientConfigBuilder
pub fn builder() -> ResilientClientConfigBuilder
Create a new builder
Trait Implementations§
Source§impl Clone for ResilientClientConfig
impl Clone for ResilientClientConfig
Source§fn clone(&self) -> ResilientClientConfig
fn clone(&self) -> ResilientClientConfig
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 ResilientClientConfig
impl Debug for ResilientClientConfig
Auto Trait Implementations§
impl Freeze for ResilientClientConfig
impl RefUnwindSafe for ResilientClientConfig
impl Send for ResilientClientConfig
impl Sync for ResilientClientConfig
impl Unpin for ResilientClientConfig
impl UnwindSafe for ResilientClientConfig
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