Enum git_tempfile::SignalHandlerMode
source · pub enum SignalHandlerMode {
None,
DeleteTempfilesOnTermination,
DeleteTempfilesOnTerminationAndRestoreDefaultBehaviour,
}
Expand description
Define how our signal handlers act
Variants§
None
Do not install a signal handler at all, but have somebody else call our handler directly.
DeleteTempfilesOnTermination
Delete all remaining registered tempfiles on termination.
DeleteTempfilesOnTerminationAndRestoreDefaultBehaviour
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<SignalHandlerMode> for SignalHandlerMode
impl PartialEq<SignalHandlerMode> for SignalHandlerMode
source§fn eq(&self, other: &SignalHandlerMode) -> bool
fn eq(&self, other: &SignalHandlerMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SignalHandlerMode> for SignalHandlerMode
impl PartialOrd<SignalHandlerMode> for SignalHandlerMode
source§fn partial_cmp(&self, other: &SignalHandlerMode) -> Option<Ordering>
fn partial_cmp(&self, other: &SignalHandlerMode) -> 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 more