pub struct HealthConfig {
pub heartbeat_interval: Duration,
pub health_check_timeout: Duration,
}Expand description
Configuration for health monitoring
Fields§
§heartbeat_interval: Duration§health_check_timeout: DurationImplementations§
Source§impl HealthConfig
impl HealthConfig
pub fn new() -> Self
pub fn with_heartbeat_interval(self, interval: Duration) -> Self
pub fn with_health_check_timeout(self, timeout: Duration) -> Self
Trait Implementations§
Source§impl Clone for HealthConfig
impl Clone for HealthConfig
Source§fn clone(&self) -> HealthConfig
fn clone(&self) -> HealthConfig
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 HealthConfig
impl Debug for HealthConfig
Auto Trait Implementations§
impl Freeze for HealthConfig
impl RefUnwindSafe for HealthConfig
impl Send for HealthConfig
impl Sync for HealthConfig
impl Unpin for HealthConfig
impl UnwindSafe for HealthConfig
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