pub struct HealthConfig {
pub cadence: Duration,
pub deadline: Duration,
pub failure_threshold: u32,
pub on_degraded: HealthAction,
pub on_failing: HealthAction,
pub critical: bool,
}Fields§
§cadence: Duration§deadline: Duration§failure_threshold: u32§on_degraded: HealthAction§on_failing: HealthAction§critical: boolTrait Implementations§
Source§impl Clone for HealthConfig
impl Clone for HealthConfig
impl Copy for HealthConfig
Source§impl Debug for HealthConfig
impl Debug for HealthConfig
Source§impl Default for HealthConfig
impl Default for HealthConfig
impl Eq for HealthConfig
Source§impl PartialEq for HealthConfig
impl PartialEq for HealthConfig
impl StructuralPartialEq 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 UnsafeUnpin 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