pub struct TestingConfig {
pub stats_interval: Duration,
pub log_stats: bool,
pub track_events: bool,
pub max_reconnect_attempts: Option<u32>,
pub reconnect_delay: Duration,
pub connection_timeout: Duration,
pub auto_reconnect: bool,
}Expand description
Configuration for the testing wrapper
Fields§
§stats_interval: DurationHow often to collect and log statistics
log_stats: boolWhether to log statistics to console
track_events: boolWhether to track detailed connection events
max_reconnect_attempts: Option<u32>Maximum number of reconnection attempts
reconnect_delay: DurationDelay between reconnection attempts
connection_timeout: DurationConnection timeout duration
auto_reconnect: boolWhether to automatically reconnect on disconnection
Trait Implementations§
Source§impl Clone for TestingConfig
impl Clone for TestingConfig
Source§fn clone(&self) -> TestingConfig
fn clone(&self) -> TestingConfig
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 TestingConfig
impl Debug for TestingConfig
Auto Trait Implementations§
impl Freeze for TestingConfig
impl RefUnwindSafe for TestingConfig
impl Send for TestingConfig
impl Sync for TestingConfig
impl Unpin for TestingConfig
impl UnsafeUnpin for TestingConfig
impl UnwindSafe for TestingConfig
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