pub struct Timeouts {
pub request: Duration,
pub create: Duration,
pub state: Duration,
pub other: Duration,
pub settle: Duration,
}Expand description
Deadlines used by the client. Every request has one; there is no unbounded wait
anywhere except the output of exec, which by design has no default timeout.
Fields§
§request: DurationSocket timeout for a single request/response exchange.
create: DurationDeadline for the instance-create operation (includes unpacking the image).
state: DurationDeadline for start/stop/restart operations.
other: DurationDeadline for any other operation (config updates, deletes, volume creation).
settle: DurationAfter a create stalls past its deadline: how long to let the (usually non-cancellable) operation settle before cleaning up and retrying.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Timeouts
impl RefUnwindSafe for Timeouts
impl Send for Timeouts
impl Sync for Timeouts
impl Unpin for Timeouts
impl UnsafeUnpin for Timeouts
impl UnwindSafe for Timeouts
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