pub struct HealthcheckConfig { /* private fields */ }Expand description
Docker healthcheck options and command.
Implementations§
Source§impl HealthcheckConfig
impl HealthcheckConfig
Sourcepub const fn new(command: HealthcheckCommand) -> HealthcheckConfig
pub const fn new(command: HealthcheckCommand) -> HealthcheckConfig
Creates healthcheck config for a command.
Sourcepub fn with_interval(self, interval: DurationSpec) -> HealthcheckConfig
pub fn with_interval(self, interval: DurationSpec) -> HealthcheckConfig
Adds an interval option.
Sourcepub fn with_timeout(self, timeout: DurationSpec) -> HealthcheckConfig
pub fn with_timeout(self, timeout: DurationSpec) -> HealthcheckConfig
Adds a timeout option.
Sourcepub fn with_start_period(self, start_period: DurationSpec) -> HealthcheckConfig
pub fn with_start_period(self, start_period: DurationSpec) -> HealthcheckConfig
Adds a start-period option.
Sourcepub const fn with_retries(self, retries: u16) -> HealthcheckConfig
pub const fn with_retries(self, retries: u16) -> HealthcheckConfig
Adds a retry count.
Sourcepub const fn command(&self) -> &HealthcheckCommand
pub const fn command(&self) -> &HealthcheckCommand
Returns the command.
Trait Implementations§
Source§impl Clone for HealthcheckConfig
impl Clone for HealthcheckConfig
Source§fn clone(&self) -> HealthcheckConfig
fn clone(&self) -> HealthcheckConfig
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 HealthcheckConfig
impl Debug for HealthcheckConfig
Source§impl Display for HealthcheckConfig
impl Display for HealthcheckConfig
Source§impl PartialEq for HealthcheckConfig
impl PartialEq for HealthcheckConfig
Source§fn eq(&self, other: &HealthcheckConfig) -> bool
fn eq(&self, other: &HealthcheckConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for HealthcheckConfig
impl StructuralPartialEq for HealthcheckConfig
Auto Trait Implementations§
impl Freeze for HealthcheckConfig
impl RefUnwindSafe for HealthcheckConfig
impl Send for HealthcheckConfig
impl Sync for HealthcheckConfig
impl Unpin for HealthcheckConfig
impl UnsafeUnpin for HealthcheckConfig
impl UnwindSafe for HealthcheckConfig
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