pub struct ConfiguredHealthCheck { /* private fields */ }Expand description
A normal health command plus bounded timing and failure fields.
Implementations§
Source§impl ConfiguredHealthCheck
impl ConfiguredHealthCheck
Sourcepub const fn new(command: HealthCommand) -> Self
pub const fn new(command: HealthCommand) -> Self
Starts one normal health check.
Sourcepub fn set_interval(&mut self, value: HealthInterval) -> PodmanLensResult<()>
pub fn set_interval(&mut self, value: HealthInterval) -> PodmanLensResult<()>
Sets interval once.
Sourcepub fn set_timeout(&mut self, value: HealthTimeout) -> PodmanLensResult<()>
pub fn set_timeout(&mut self, value: HealthTimeout) -> PodmanLensResult<()>
Sets timeout once.
Sourcepub fn set_retries(&mut self, value: HealthRetries) -> PodmanLensResult<()>
pub fn set_retries(&mut self, value: HealthRetries) -> PodmanLensResult<()>
Sets retries once.
Sourcepub fn set_start_period(
&mut self,
value: HealthStartPeriod,
) -> PodmanLensResult<()>
pub fn set_start_period( &mut self, value: HealthStartPeriod, ) -> PodmanLensResult<()>
Sets start period once.
Sourcepub fn set_on_failure(&mut self, value: HealthOnFailure) -> PodmanLensResult<()>
pub fn set_on_failure(&mut self, value: HealthOnFailure) -> PodmanLensResult<()>
Sets the failure action once.
Sourcepub const fn command(&self) -> &HealthCommand
pub const fn command(&self) -> &HealthCommand
Returns command.
Sourcepub const fn interval(&self) -> Option<HealthInterval>
pub const fn interval(&self) -> Option<HealthInterval>
Returns interval.
Sourcepub const fn timeout(&self) -> Option<HealthTimeout>
pub const fn timeout(&self) -> Option<HealthTimeout>
Returns timeout.
Sourcepub const fn retries(&self) -> Option<HealthRetries>
pub const fn retries(&self) -> Option<HealthRetries>
Returns retries.
Sourcepub const fn start_period(&self) -> Option<HealthStartPeriod>
pub const fn start_period(&self) -> Option<HealthStartPeriod>
Returns start period.
Sourcepub const fn on_failure(&self) -> Option<HealthOnFailure>
pub const fn on_failure(&self) -> Option<HealthOnFailure>
Returns failure action.
Trait Implementations§
Source§impl Clone for ConfiguredHealthCheck
impl Clone for ConfiguredHealthCheck
Source§fn clone(&self) -> ConfiguredHealthCheck
fn clone(&self) -> ConfiguredHealthCheck
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 ConfiguredHealthCheck
impl Debug for ConfiguredHealthCheck
impl Eq for ConfiguredHealthCheck
Source§impl PartialEq for ConfiguredHealthCheck
impl PartialEq for ConfiguredHealthCheck
impl StructuralPartialEq for ConfiguredHealthCheck
Auto Trait Implementations§
impl Freeze for ConfiguredHealthCheck
impl RefUnwindSafe for ConfiguredHealthCheck
impl Send for ConfiguredHealthCheck
impl Sync for ConfiguredHealthCheck
impl Unpin for ConfiguredHealthCheck
impl UnsafeUnpin for ConfiguredHealthCheck
impl UnwindSafe for ConfiguredHealthCheck
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