pub struct ServerMonitorConfig {
pub check_interval: Duration,
pub health_check_timeout: Duration,
pub max_consecutive_failures: u32,
pub auto_restart: bool,
}
Expand description
Server monitor configuration
Fields§
§check_interval: Duration
Check interval
health_check_timeout: Duration
Health check timeout
max_consecutive_failures: u32
Maximum number of consecutive failures before marking as unhealthy
auto_restart: bool
Auto-restart unhealthy servers
Trait Implementations§
Source§impl Clone for ServerMonitorConfig
impl Clone for ServerMonitorConfig
Source§fn clone(&self) -> ServerMonitorConfig
fn clone(&self) -> ServerMonitorConfig
Returns a copy 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 ServerMonitorConfig
impl Debug for ServerMonitorConfig
Auto Trait Implementations§
impl Freeze for ServerMonitorConfig
impl RefUnwindSafe for ServerMonitorConfig
impl Send for ServerMonitorConfig
impl Sync for ServerMonitorConfig
impl Unpin for ServerMonitorConfig
impl UnwindSafe for ServerMonitorConfig
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