pub enum Disposition {
Default,
Ignore,
Catch,
}Expand description
How the shell process responds to a signal
Variants§
Default
Perform the default action for the signal.
The default action depends on the signal. For example, SIGINT causes
the process to terminate, and SIGTSTP causes the process to stop.
Ignore
Ignore the signal.
Catch
Catch the signal.
Trait Implementations§
Source§impl Clone for Disposition
impl Clone for Disposition
Source§fn clone(&self) -> Disposition
fn clone(&self) -> Disposition
Returns a duplicate 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 Disposition
impl Debug for Disposition
Source§impl Default for Disposition
impl Default for Disposition
Source§fn default() -> Disposition
fn default() -> Disposition
Returns the “default value” for a type. Read more
Source§impl From<&Action> for Disposition
impl From<&Action> for Disposition
Source§impl Hash for Disposition
impl Hash for Disposition
Source§impl Ord for Disposition
impl Ord for Disposition
Source§fn cmp(&self, other: &Disposition) -> Ordering
fn cmp(&self, other: &Disposition) -> 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 Disposition
impl PartialEq for Disposition
Source§impl PartialOrd for Disposition
impl PartialOrd for Disposition
impl Copy for Disposition
impl Eq for Disposition
impl StructuralPartialEq for Disposition
Auto Trait Implementations§
impl Freeze for Disposition
impl RefUnwindSafe for Disposition
impl Send for Disposition
impl Sync for Disposition
impl Unpin for Disposition
impl UnwindSafe for Disposition
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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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