pub enum SignalAction {
Noop,
LogLevelUp,
LogLevelDown,
ReopenLog,
Shutdown,
StackTrace,
Ignore,
}Expand description
Action to run when a signal is delivered.
The default mapping is: SIGTTIN/SIGTTOU adjust the global log verbosity, SIGHUP reopens the log file, SIGINT requests a graceful shutdown, SIGUSR1 and SIGUSR2 are reserved noop slots, SIGSEGV records a stack trace, and SIGPIPE is ignored.
§Examples
use dynomite::core::signal::SignalAction;
assert_ne!(SignalAction::Shutdown, SignalAction::Noop);
assert_eq!(SignalAction::Ignore, SignalAction::Ignore);Variants§
Noop
Reserved slot used by the in-process action table that currently does nothing.
LogLevelUp
Bump the global log verbosity by one.
LogLevelDown
Drop the global log verbosity by one.
ReopenLog
Reopen the active log file (if any).
Shutdown
Request a graceful shutdown.
StackTrace
Print a stack trace; the dispatcher also re-raises SIGSEGV afterwards so the kernel can produce the standard core dump.
Ignore
Ignore the signal entirely (matches SIG_IGN).
Trait Implementations§
Source§impl Clone for SignalAction
impl Clone for SignalAction
Source§fn clone(&self) -> SignalAction
fn clone(&self) -> SignalAction
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 SignalAction
impl Debug for SignalAction
Source§impl PartialEq for SignalAction
impl PartialEq for SignalAction
Source§fn eq(&self, other: &SignalAction) -> bool
fn eq(&self, other: &SignalAction) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for SignalAction
impl Eq for SignalAction
impl StructuralPartialEq for SignalAction
Auto Trait Implementations§
impl Freeze for SignalAction
impl RefUnwindSafe for SignalAction
impl Send for SignalAction
impl Sync for SignalAction
impl Unpin for SignalAction
impl UnsafeUnpin for SignalAction
impl UnwindSafe for SignalAction
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§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.