Struct docker_api::models::HealthConfig
source · [−]pub struct HealthConfig {
pub interval: Option<usize>,
pub retries: Option<usize>,
pub start_period: Option<usize>,
pub test: Option<Vec<String, Global>>,
pub timeout: Option<usize>,
}
Expand description
A test to perform to check that the container is healthy.
Fields
interval: Option<usize>
The time to wait between checks in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit.
retries: Option<usize>
The number of consecutive failures needed to consider a container as unhealthy. 0 means inherit.
start_period: Option<usize>
Start period for the container to initialize before starting health-retries countdown in nanoseconds. It should be 0 or at least 1000000 (1 ms). 0 means inherit.
test: Option<Vec<String, Global>>
The test to perform. Possible values are:
[]
inherit healthcheck from image or parent image["NONE"]
disable healthcheck["CMD", args...]
exec arguments directly["CMD-SHELL", command]
run command with system’s default shell
timeout: Option<usize>
The time to wait before considering the check to have hung. It should be 0 or at least 1000000 (1 ms). 0 means inherit.
Trait Implementations
sourceimpl Clone for HealthConfig
impl Clone for HealthConfig
sourcefn clone(&self) -> HealthConfig
fn clone(&self) -> HealthConfig
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HealthConfig
impl Debug for HealthConfig
sourceimpl<'de> Deserialize<'de> for HealthConfig
impl<'de> Deserialize<'de> for HealthConfig
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<HealthConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<HealthConfig, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<HealthConfig> for HealthConfig
impl PartialEq<HealthConfig> for HealthConfig
sourcefn eq(&self, other: &HealthConfig) -> bool
fn eq(&self, other: &HealthConfig) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl Serialize for HealthConfig
impl Serialize for HealthConfig
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for HealthConfig
Auto Trait Implementations
impl RefUnwindSafe for HealthConfig
impl Send for HealthConfig
impl Sync for HealthConfig
impl Unpin for HealthConfig
impl UnwindSafe for HealthConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more