pub struct HealthConfigBuilder { /* private fields */ }
Expand description
Builder for HealthConfig
.
Implementations§
Source§impl HealthConfigBuilder
impl HealthConfigBuilder
Sourcepub fn test<VALUE: Into<Option<Vec<String>>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn test<VALUE: Into<Option<Vec<String>>>>( &mut self, value: VALUE, ) -> &mut Self
Test is the test to perform to check that the container is healthy. An empty slice means to inherit the default. The options are: {} : inherit healthcheck. {“NONE”} : disable healthcheck. {“CMD”, args…} : exec arguments directly. {“CMD-SHELL”, command} : run command with system’s default shell.
Sourcepub fn interval_nanoseconds<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn interval_nanoseconds<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self
Zero means to inherit. Durations are expressed as integer nanoseconds. interval_nanoseconds is the time to wait between checks.
Sourcepub fn timeout_nanoseconds<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn timeout_nanoseconds<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self
Timeout is the time to wait before considering the check to have hung.
Sourcepub fn start_period_nanoseconds<VALUE: Into<Option<i64>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn start_period_nanoseconds<VALUE: Into<Option<i64>>>( &mut self, value: VALUE, ) -> &mut Self
The start period for the container to initialize before the retries starts to count down.
Trait Implementations§
Source§impl Clone for HealthConfigBuilder
impl Clone for HealthConfigBuilder
Source§fn clone(&self) -> HealthConfigBuilder
fn clone(&self) -> HealthConfigBuilder
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for HealthConfigBuilder
impl Default for HealthConfigBuilder
Source§fn default() -> HealthConfigBuilder
fn default() -> HealthConfigBuilder
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for HealthConfigBuilder
impl RefUnwindSafe for HealthConfigBuilder
impl Send for HealthConfigBuilder
impl Sync for HealthConfigBuilder
impl Unpin for HealthConfigBuilder
impl UnwindSafe for HealthConfigBuilder
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