pub enum SignalHandlerMode {
None = 0,
DeleteTempfilesOnTermination = 1,
DeleteTempfilesOnTerminationAndRestoreDefaultBehaviour = 2,
}
Expand description
Define how our signal handlers act
Variants§
None = 0
Do not install a signal handler at all, but have somebody else call our handler directly.
DeleteTempfilesOnTermination = 1
Delete all remaining registered tempfiles on termination.
DeleteTempfilesOnTerminationAndRestoreDefaultBehaviour = 2
Delete all remaining registered tempfiles on termination and emulate the default handler behaviour.
This typically leads to the process being aborted.
Trait Implementations§
Source§impl Clone for SignalHandlerMode
impl Clone for SignalHandlerMode
Source§fn clone(&self) -> SignalHandlerMode
fn clone(&self) -> SignalHandlerMode
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 SignalHandlerMode
impl Debug for SignalHandlerMode
Source§impl Default for SignalHandlerMode
impl Default for SignalHandlerMode
Source§impl Ord for SignalHandlerMode
impl Ord for SignalHandlerMode
Source§fn cmp(&self, other: &SignalHandlerMode) -> Ordering
fn cmp(&self, other: &SignalHandlerMode) -> 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 SignalHandlerMode
impl PartialEq for SignalHandlerMode
Source§impl PartialOrd for SignalHandlerMode
impl PartialOrd for SignalHandlerMode
impl Copy for SignalHandlerMode
impl Eq for SignalHandlerMode
impl StructuralPartialEq for SignalHandlerMode
Auto Trait Implementations§
impl Freeze for SignalHandlerMode
impl RefUnwindSafe for SignalHandlerMode
impl Send for SignalHandlerMode
impl Sync for SignalHandlerMode
impl Unpin for SignalHandlerMode
impl UnwindSafe for SignalHandlerMode
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