pub struct UnixGracefulPhase {
pub signal: UnixGracefulSignal,
pub timeout: Duration,
}Expand description
One step of a Unix graceful-shutdown sequence: a signal to send and a maximum time to wait for the child to exit before escalating.
Fields§
§signal: UnixGracefulSignalSignal sent at the start of this phase.
timeout: DurationMaximum time to wait for the child to exit after signal is sent. When this elapses the
sequence escalates to the next phase, or to the implicit SIGKILL fallback if this is the
last phase.
Implementations§
Trait Implementations§
Source§impl Clone for UnixGracefulPhase
impl Clone for UnixGracefulPhase
Source§fn clone(&self) -> UnixGracefulPhase
fn clone(&self) -> UnixGracefulPhase
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 UnixGracefulPhase
impl Debug for UnixGracefulPhase
Source§impl PartialEq for UnixGracefulPhase
impl PartialEq for UnixGracefulPhase
Source§fn eq(&self, other: &UnixGracefulPhase) -> bool
fn eq(&self, other: &UnixGracefulPhase) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for UnixGracefulPhase
impl Eq for UnixGracefulPhase
impl StructuralPartialEq for UnixGracefulPhase
Auto Trait Implementations§
impl Freeze for UnixGracefulPhase
impl RefUnwindSafe for UnixGracefulPhase
impl Send for UnixGracefulPhase
impl Sync for UnixGracefulPhase
impl Unpin for UnixGracefulPhase
impl UnsafeUnpin for UnixGracefulPhase
impl UnwindSafe for UnixGracefulPhase
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