pub struct WatchOptions {
pub timeout_duration: Option<Duration>,
pub allow_unhealthy_initial_state: bool,
}Expand description
Options for waiting for a deployment to become healthy.
This struct provides configuration options for waiting for a container to reach a healthy state, including setting a maximum timeout duration.
§Examples
use atlas_local::models::WatchOptions;
use std::time::Duration;
let options = WatchOptions::builder()
.timeout_duration(Duration::from_secs(300))
.build();Fields§
§timeout_duration: Option<Duration>Maximum duration to wait for the deployment to become healthy.
allow_unhealthy_initial_state: boolIndicates that the initial state of the deployment is allowed to be unhealthy.
Implementations§
Source§impl WatchOptions
impl WatchOptions
Sourcepub fn builder() -> WatchOptionsBuilder<((), ())>
pub fn builder() -> WatchOptionsBuilder<((), ())>
Create a builder for building WatchOptions.
On the builder, call .timeout_duration(...)(optional), .allow_unhealthy_initial_state(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of WatchOptions.
Trait Implementations§
Source§impl Clone for WatchOptions
impl Clone for WatchOptions
Source§fn clone(&self) -> WatchOptions
fn clone(&self) -> WatchOptions
Returns a duplicate 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 Debug for WatchOptions
impl Debug for WatchOptions
Source§impl PartialEq for WatchOptions
impl PartialEq for WatchOptions
impl StructuralPartialEq for WatchOptions
Auto Trait Implementations§
impl Freeze for WatchOptions
impl RefUnwindSafe for WatchOptions
impl Send for WatchOptions
impl Sync for WatchOptions
impl Unpin for WatchOptions
impl UnsafeUnpin for WatchOptions
impl UnwindSafe for WatchOptions
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