pub struct SignalEntry {
pub signal: Signal,
pub name: &'static str,
pub action: SignalAction,
}Expand description
One entry in the signal-action table.
§Examples
use dynomite::core::signal::{default_actions, SignalAction};
let entry = default_actions().iter().find(|e| e.name == "SIGINT").unwrap();
assert_eq!(entry.action, SignalAction::Shutdown);Fields§
§signal: SignalThe POSIX signal number this entry handles.
name: &'static strHuman-readable name used in log messages.
action: SignalActionAction to run when the signal fires.
Trait Implementations§
Source§impl Clone for SignalEntry
impl Clone for SignalEntry
Source§fn clone(&self) -> SignalEntry
fn clone(&self) -> SignalEntry
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 SignalEntry
impl Debug for SignalEntry
impl Copy for SignalEntry
Auto Trait Implementations§
impl Freeze for SignalEntry
impl RefUnwindSafe for SignalEntry
impl Send for SignalEntry
impl Sync for SignalEntry
impl Unpin for SignalEntry
impl UnsafeUnpin for SignalEntry
impl UnwindSafe for SignalEntry
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