pub struct HealthMonitorConfig {
pub health_check_interval: Duration,
pub health_check_timeout: Duration,
pub failure_threshold: u32,
pub success_threshold: u32,
pub heartbeat_interval: Duration,
pub heartbeat_timeout: Duration,
pub enabled: bool,
}Expand description
Health monitoring configuration
Fields§
§health_check_interval: DurationInterval between health checks
health_check_timeout: DurationTimeout for health check requests
failure_threshold: u32Number of consecutive failures before marking unhealthy
success_threshold: u32Number of consecutive successes to mark healthy again
heartbeat_interval: DurationInterval for sending heartbeats
heartbeat_timeout: DurationMaximum age of last heartbeat before considering service stale
enabled: boolWhether to enable health monitoring
Trait Implementations§
Source§impl Clone for HealthMonitorConfig
impl Clone for HealthMonitorConfig
Source§fn clone(&self) -> HealthMonitorConfig
fn clone(&self) -> HealthMonitorConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HealthMonitorConfig
impl Debug for HealthMonitorConfig
Source§impl Default for HealthMonitorConfig
impl Default for HealthMonitorConfig
Source§impl<'de> Deserialize<'de> for HealthMonitorConfig
impl<'de> Deserialize<'de> for HealthMonitorConfig
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 HealthMonitorConfig
impl RefUnwindSafe for HealthMonitorConfig
impl Send for HealthMonitorConfig
impl Sync for HealthMonitorConfig
impl Unpin for HealthMonitorConfig
impl UnwindSafe for HealthMonitorConfig
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