Function signal_hook::low_level::signal_name
source · [−]Expand description
Provides a human-readable name of a signal.
Note that the name does not have to be known (in case it is some less common, or non-standard signal).
Examples
assert_eq!("SIGKILL", signal_name(9).unwrap());
assert!(signal_name(142).is_none());