pub struct HealthCheck {
pub command: Vec<String>,
pub interval: Duration,
pub retries: u32,
pub start_period: Duration,
pub timeout: Duration,
}Expand description
Health check configuration for long-running services.
Fields§
§command: Vec<String>Command to run inside the container to check health.
interval: DurationInterval between health checks.
retries: u32Number of consecutive failures before marking unhealthy.
start_period: DurationGrace period after start before health checks begin.
timeout: DurationTimeout for each health check execution.
Trait Implementations§
Source§impl Clone for HealthCheck
impl Clone for HealthCheck
Source§fn clone(&self) -> HealthCheck
fn clone(&self) -> HealthCheck
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 HealthCheck
impl Debug for HealthCheck
Auto Trait Implementations§
impl Freeze for HealthCheck
impl RefUnwindSafe for HealthCheck
impl Send for HealthCheck
impl Sync for HealthCheck
impl Unpin for HealthCheck
impl UnsafeUnpin for HealthCheck
impl UnwindSafe for HealthCheck
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