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
Defines the parameters used by the ServerMonitor to determine how and when to check server health, and what actions to take based on health status.
Fields§
§check_interval: Duration
How often to check server health (interval between checks)
health_check_timeout: Duration
Maximum time to wait for a health check to complete
max_consecutive_failures: u32
Number of consecutive failed checks before marking a server as unhealthy
auto_restart: bool
Whether to automatically 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 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 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