Enum gix_tempfile::signal::handler::Mode
source · pub enum Mode {
None = 0,
DeleteTempfilesOnTermination = 1,
DeleteTempfilesOnTerminationAndRestoreDefaultBehaviour = 2,
}
Available on crate feature
signals
only.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 Ord for Mode
impl Ord for Mode
source§impl PartialEq for Mode
impl PartialEq for Mode
source§impl PartialOrd for Mode
impl PartialOrd for Mode
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 Mode
impl Eq for Mode
impl StructuralPartialEq for Mode
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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