pub enum SigHandler {
SigDfl,
SigIgn,
Handler(extern "C" fn(_: c_int)),
SigAction(extern "C" fn(_: c_int, _: *mut siginfo_t, _: *mut c_void)),
}
Expand description
A signal handler.
Variants
SigDfl
Default signal handling.
SigIgn
Request that the signal be ignored.
Handler(extern "C" fn(_: c_int))
Use the given signal-catching function, which takes in the signal.
SigAction(extern "C" fn(_: c_int, _: *mut siginfo_t, _: *mut c_void))
Use the given signal-catching function, which takes in the signal, information about how
the signal was generated, and a pointer to the threads ucontext_t
.
Trait Implementations
sourceimpl Clone for SigHandler
impl Clone for SigHandler
sourcefn clone(&self) -> SigHandler
fn clone(&self) -> SigHandler
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SigHandler
impl Debug for SigHandler
sourceimpl Hash for SigHandler
impl Hash for SigHandler
sourceimpl PartialEq<SigHandler> for SigHandler
impl PartialEq<SigHandler> for SigHandler
sourcefn eq(&self, other: &SigHandler) -> bool
fn eq(&self, other: &SigHandler) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &SigHandler) -> bool
fn ne(&self, other: &SigHandler) -> bool
This method tests for !=
.
impl Copy for SigHandler
impl Eq for SigHandler
impl StructuralEq for SigHandler
impl StructuralPartialEq for SigHandler
Auto Trait Implementations
impl RefUnwindSafe for SigHandler
impl Send for SigHandler
impl Sync for SigHandler
impl Unpin for SigHandler
impl UnwindSafe for SigHandler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more