pub struct HealthCheck { /* private fields */ }Expand description
The test command runs inside the container through /bin/sh -c.
Implementations§
Source§impl HealthCheck
impl HealthCheck
pub fn new(test: HealthCheckTest) -> Self
pub fn with_interval(self, interval: HealthDuration) -> Self
pub fn with_timeout(self, timeout: HealthDuration) -> Self
pub fn with_start_period(self, start_period: HealthDuration) -> Self
pub fn with_start_interval(self, start_interval: HealthDuration) -> Self
pub fn with_retries(self, retries: u32) -> Self
Trait Implementations§
Source§impl Clone for HealthCheck
impl Clone for HealthCheck
Source§impl Debug for HealthCheck
impl Debug for HealthCheck
Source§impl<'de> Deserialize<'de> for HealthCheck
impl<'de> Deserialize<'de> for HealthCheck
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for HealthCheck
impl PartialEq for HealthCheck
Source§impl Serialize for HealthCheck
impl Serialize for HealthCheck
impl StructuralPartialEq for HealthCheck
Auto Trait Implementations§
impl Freeze for HealthCheck
impl RefUnwindSafe for HealthCheck
impl Send for HealthCheck
impl Sync for HealthCheck
impl Unpin for HealthCheck
impl UnsafeUnpin for HealthCheck
impl UnwindSafe for HealthCheck
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