pub enum SignalAction {
Terminate,
ForceTerminate,
Ignore,
Stop,
Continue,
Custom(usize),
}Expand description
Signal action types
Variants§
Terminate
Default action: terminate process
ForceTerminate
Force terminate (cannot be caught/ignored)
Ignore
Ignore signal
Stop
Stop process
Continue
Continue process
Custom(usize)
Custom handler
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§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
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 UnwindSafe for SignalAction
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.