pub struct RuntimeHealthcheck { /* private fields */ }Expand description
Effective regular health-check configuration observed from a container or image.
An empty value records that the native adapter inspected the field and found no regular health
check. Commands and their arguments remain sensitive by default through ProtectedString.
Podman’s separate startup-healthcheck family is intentionally not represented here.
Implementations§
Source§impl RuntimeHealthcheck
impl RuntimeHealthcheck
Sourcepub const fn is_empty(&self) -> bool
pub const fn is_empty(&self) -> bool
Returns whether inspection proved that no regular health-check field is configured.
Sourcepub fn set_command(&mut self, command: HealthcheckCommand)
pub fn set_command(&mut self, command: HealthcheckCommand)
Records the effective regular health-check command.
Sourcepub const fn command(&self) -> Option<&HealthcheckCommand>
pub const fn command(&self) -> Option<&HealthcheckCommand>
Returns the effective regular health-check command.
Sourcepub fn set_disabled(&mut self, disabled: bool)
pub fn set_disabled(&mut self, disabled: bool)
Records an explicit disabled state.
Sourcepub fn set_interval(&mut self, interval: HealthcheckDuration)
pub fn set_interval(&mut self, interval: HealthcheckDuration)
Records the effective interval between regular checks.
Sourcepub const fn interval(&self) -> Option<&HealthcheckDuration>
pub const fn interval(&self) -> Option<&HealthcheckDuration>
Returns the effective interval between regular checks.
Sourcepub fn set_timeout(&mut self, timeout: HealthcheckDuration)
pub fn set_timeout(&mut self, timeout: HealthcheckDuration)
Records the effective timeout of one regular check.
Sourcepub const fn timeout(&self) -> Option<&HealthcheckDuration>
pub const fn timeout(&self) -> Option<&HealthcheckDuration>
Returns the effective timeout of one regular check.
Sourcepub fn set_retries(&mut self, retries: HealthcheckRetries)
pub fn set_retries(&mut self, retries: HealthcheckRetries)
Records the effective regular-check retry count.
Sourcepub const fn retries(&self) -> Option<&HealthcheckRetries>
pub const fn retries(&self) -> Option<&HealthcheckRetries>
Returns the effective regular-check retry count.
Sourcepub fn set_start_period(&mut self, start_period: HealthcheckDuration)
pub fn set_start_period(&mut self, start_period: HealthcheckDuration)
Records the effective regular health-check start period.
Sourcepub const fn start_period(&self) -> Option<&HealthcheckDuration>
pub const fn start_period(&self) -> Option<&HealthcheckDuration>
Returns the effective regular health-check start period.
Sourcepub fn set_start_interval(&mut self, start_interval: HealthcheckDuration)
pub fn set_start_interval(&mut self, start_interval: HealthcheckDuration)
Records the effective start interval where the native runtime exposes equivalent semantics.
Sourcepub const fn start_interval(&self) -> Option<&HealthcheckDuration>
pub const fn start_interval(&self) -> Option<&HealthcheckDuration>
Returns the effective start interval.
Trait Implementations§
Source§impl Clone for RuntimeHealthcheck
impl Clone for RuntimeHealthcheck
Source§fn clone(&self) -> RuntimeHealthcheck
fn clone(&self) -> RuntimeHealthcheck
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more