pub struct WindowsGracefulShutdown {
pub timeout: Duration,
}Expand description
Single-phase Windows graceful-shutdown sequence.
CTRL_BREAK_EVENT is dispatched to the child’s console process group, then TerminateProcess
runs as the kill fallback if the child has not exited within timeout. Windows has
no second graceful signal: GenerateConsoleCtrlEvent accepts only CTRL_BREAK_EVENT for
nonzero process groups, so a second graceful phase would just duplicate the first send.
Fields§
§timeout: DurationMaximum time to wait after sending CTRL_BREAK_EVENT before escalating to
TerminateProcess.
Implementations§
Trait Implementations§
Source§impl Clone for WindowsGracefulShutdown
impl Clone for WindowsGracefulShutdown
Source§fn clone(&self) -> WindowsGracefulShutdown
fn clone(&self) -> WindowsGracefulShutdown
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WindowsGracefulShutdown
impl Debug for WindowsGracefulShutdown
Source§impl PartialEq for WindowsGracefulShutdown
impl PartialEq for WindowsGracefulShutdown
Source§fn eq(&self, other: &WindowsGracefulShutdown) -> bool
fn eq(&self, other: &WindowsGracefulShutdown) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for WindowsGracefulShutdown
impl Eq for WindowsGracefulShutdown
impl StructuralPartialEq for WindowsGracefulShutdown
Auto Trait Implementations§
impl Freeze for WindowsGracefulShutdown
impl RefUnwindSafe for WindowsGracefulShutdown
impl Send for WindowsGracefulShutdown
impl Sync for WindowsGracefulShutdown
impl Unpin for WindowsGracefulShutdown
impl UnsafeUnpin for WindowsGracefulShutdown
impl UnwindSafe for WindowsGracefulShutdown
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