pub enum Signal {
Interrupt,
Quit,
Terminate,
Kill,
Hangup,
User1,
User2,
}Expand description
Signals that can be sent to a process.
Variants§
Interrupt
Interrupt (Ctrl+C).
Quit
Quit (Ctrl+).
Terminate
Terminate.
Kill
Kill (non-catchable).
Hangup
Hangup.
User1
User defined signal 1.
User2
User defined signal 2.
Implementations§
Source§impl Signal
impl Signal
Sourcepub const fn as_control_char(&self) -> Option<ControlChar>
pub const fn as_control_char(&self) -> Option<ControlChar>
Get the control character for this signal, if applicable.
Sourcepub const fn as_signal_number(&self) -> i32
pub const fn as_signal_number(&self) -> i32
Get the Unix signal number for this signal.
Trait Implementations§
impl Copy for Signal
impl Eq for Signal
impl StructuralPartialEq for Signal
Auto Trait Implementations§
impl Freeze for Signal
impl RefUnwindSafe for Signal
impl Send for Signal
impl Sync for Signal
impl Unpin for Signal
impl UnwindSafe for Signal
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