Enum yash_env::system::SignalHandling
source · pub enum SignalHandling {
Default,
Ignore,
Catch,
}Expand description
How to handle a signal.
Variants§
Default
Perform the default action for the signal.
Ignore
Ignore the signal.
Catch
Catch the signal.
Trait Implementations§
source§impl Clone for SignalHandling
impl Clone for SignalHandling
source§fn clone(&self) -> SignalHandling
fn clone(&self) -> SignalHandling
Returns a copy of the value. Read more
1.0.0 · 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 SignalHandling
impl Debug for SignalHandling
source§impl Default for SignalHandling
impl Default for SignalHandling
source§fn default() -> SignalHandling
fn default() -> SignalHandling
Returns the “default value” for a type. Read more
source§impl From<&Action> for SignalHandling
impl From<&Action> for SignalHandling
source§impl Hash for SignalHandling
impl Hash for SignalHandling
source§impl Ord for SignalHandling
impl Ord for SignalHandling
source§fn cmp(&self, other: &SignalHandling) -> Ordering
fn cmp(&self, other: &SignalHandling) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for SignalHandling
impl PartialEq for SignalHandling
source§fn eq(&self, other: &SignalHandling) -> bool
fn eq(&self, other: &SignalHandling) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for SignalHandling
impl PartialOrd for SignalHandling
source§fn partial_cmp(&self, other: &SignalHandling) -> Option<Ordering>
fn partial_cmp(&self, other: &SignalHandling) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for SignalHandling
impl Eq for SignalHandling
impl StructuralPartialEq for SignalHandling
Auto Trait Implementations§
impl Freeze for SignalHandling
impl RefUnwindSafe for SignalHandling
impl Send for SignalHandling
impl Sync for SignalHandling
impl Unpin for SignalHandling
impl UnwindSafe for SignalHandling
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: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more