pub struct WaitForCompletionOrTerminateOptions {
pub wait_timeout: Duration,
pub graceful_timeouts: GracefulTimeouts,
}Expand description
Options for waiting until a process exits, terminating it if waiting fails.
graceful_timeouts is a GracefulTimeouts value, whose shape itself differs per platform
(two timeouts on Unix, one on Windows). Cross-platform callers construct it under cfg gates;
the wait-or-terminate signature stays the same on every supported OS.
This type is only available on Unix and Windows because the underlying terminate(...)
machinery is gated to those platforms.
Fields§
§wait_timeout: DurationMaximum time to wait before attempting termination.
graceful_timeouts: GracefulTimeoutsPer-platform graceful-shutdown timeout budget. See GracefulTimeouts.
Trait Implementations§
Source§impl Clone for WaitForCompletionOrTerminateOptions
impl Clone for WaitForCompletionOrTerminateOptions
Source§fn clone(&self) -> WaitForCompletionOrTerminateOptions
fn clone(&self) -> WaitForCompletionOrTerminateOptions
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 PartialEq for WaitForCompletionOrTerminateOptions
impl PartialEq for WaitForCompletionOrTerminateOptions
Source§fn eq(&self, other: &WaitForCompletionOrTerminateOptions) -> bool
fn eq(&self, other: &WaitForCompletionOrTerminateOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WaitForCompletionOrTerminateOptions
impl Eq for WaitForCompletionOrTerminateOptions
impl StructuralPartialEq for WaitForCompletionOrTerminateOptions
Auto Trait Implementations§
impl Freeze for WaitForCompletionOrTerminateOptions
impl RefUnwindSafe for WaitForCompletionOrTerminateOptions
impl Send for WaitForCompletionOrTerminateOptions
impl Sync for WaitForCompletionOrTerminateOptions
impl Unpin for WaitForCompletionOrTerminateOptions
impl UnsafeUnpin for WaitForCompletionOrTerminateOptions
impl UnwindSafe for WaitForCompletionOrTerminateOptions
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