pub enum SignalBehavior {
GracefulShutdown,
GracefulShutdownWithDoubleTap,
ReloadViaRestart,
ImmediateExit,
Custom,
ObserveOnly,
}Expand description
Signal behavior type.
Defines how a signal should be handled by default.
Variants§
GracefulShutdown
Clean shutdown with timeout and cleanup chain
GracefulShutdownWithDoubleTap
Graceful shutdown with force-quit option (Ctrl+C pattern)
ReloadViaRestart
Config reload via restart with mandatory schema validation
ImmediateExit
Emergency shutdown without cleanup
Custom
Application-defined handler
ObserveOnly
Log and continue (no exit)
Implementations§
Trait Implementations§
Source§impl Clone for SignalBehavior
impl Clone for SignalBehavior
Source§fn clone(&self) -> SignalBehavior
fn clone(&self) -> SignalBehavior
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 SignalBehavior
Source§impl Debug for SignalBehavior
impl Debug for SignalBehavior
impl Eq for SignalBehavior
Source§impl Hash for SignalBehavior
impl Hash for SignalBehavior
Source§impl PartialEq for SignalBehavior
impl PartialEq for SignalBehavior
impl StructuralPartialEq for SignalBehavior
Auto Trait Implementations§
impl Freeze for SignalBehavior
impl RefUnwindSafe for SignalBehavior
impl Send for SignalBehavior
impl Sync for SignalBehavior
impl Unpin for SignalBehavior
impl UnsafeUnpin for SignalBehavior
impl UnwindSafe for SignalBehavior
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.