Struct contain_rs::HealthCheck
source · pub struct HealthCheck {
pub command: String,
pub retries: Option<u32>,
pub interval: Option<Duration>,
pub start_period: Option<Duration>,
pub timeout: Option<Duration>,
}
Fields§
§command: String
§retries: Option<u32>
§interval: Option<Duration>
§start_period: Option<Duration>
§timeout: Option<Duration>
Implementations§
source§impl HealthCheck
impl HealthCheck
pub fn new(command: &str) -> HealthCheck
pub fn retries(self, retries: u32) -> HealthCheck
pub fn interval(self, interval: Duration) -> HealthCheck
pub fn start_period(self, start_period: Duration) -> HealthCheck
pub fn timeout(self, timeout: Duration) -> HealthCheck
Trait Implementations§
source§impl Clone for HealthCheck
impl Clone for HealthCheck
source§fn clone(&self) -> HealthCheck
fn clone(&self) -> HealthCheck
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 moreAuto Trait Implementations§
impl RefUnwindSafe for HealthCheck
impl Send for HealthCheck
impl Sync for HealthCheck
impl Unpin 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