pub struct ExitReason {
pub kind: ShutdownKind,
pub should_exit: bool,
}Expand description
Why an ExitSource fired.
Fields§
§kind: ShutdownKindThe kind of shutdown implied.
should_exit: boolWhether the process should actually exit once drain completes
(false for a pure reload that keeps the process alive).
Implementations§
Trait Implementations§
Source§impl Clone for ExitReason
impl Clone for ExitReason
Source§fn clone(&self) -> ExitReason
fn clone(&self) -> ExitReason
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 moreimpl Copy for ExitReason
Source§impl Debug for ExitReason
impl Debug for ExitReason
impl Eq for ExitReason
Source§impl PartialEq for ExitReason
impl PartialEq for ExitReason
Source§fn eq(&self, other: &ExitReason) -> bool
fn eq(&self, other: &ExitReason) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExitReason
Auto Trait Implementations§
impl Freeze for ExitReason
impl RefUnwindSafe for ExitReason
impl Send for ExitReason
impl Sync for ExitReason
impl Unpin for ExitReason
impl UnsafeUnpin for ExitReason
impl UnwindSafe for ExitReason
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