pub struct WaitOpts {
pub timeout: Duration,
pub poll_interval: Duration,
pub stall_grace: Duration,
}Expand description
How long to wait and how often to poll.
Fields§
§timeout: DurationThe client-side deadline.
poll_interval: DurationThe gap between polls.
stall_grace: DurationHow long CREATING is tolerated before the stall probe runs (TRAP-2).
Only meaningful for the image wait; the launch wait has no equivalent, because a launch has no build list to probe.
Implementations§
Source§impl WaitOpts
impl WaitOpts
Sourcepub fn for_launch() -> Self
pub fn for_launch() -> Self
Options for the launch wait: five minutes, five-second polls.
stall_grace is set past the timeout rather than to zero, since a zero grace would
read as “probe immediately” — and there is nothing to probe on the launch path.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WaitOpts
impl RefUnwindSafe for WaitOpts
impl Send for WaitOpts
impl Sync for WaitOpts
impl Unpin for WaitOpts
impl UnsafeUnpin for WaitOpts
impl UnwindSafe for WaitOpts
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.