Enum nix::sys::signal::SigHandler
source · 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§
source§impl Clone for SigHandler
impl Clone for SigHandler
source§fn clone(&self) -> SigHandler
fn clone(&self) -> SigHandler
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 SigHandler
impl Debug for SigHandler
source§impl Hash for SigHandler
impl Hash for SigHandler
source§impl PartialEq<SigHandler> for SigHandler
impl PartialEq<SigHandler> for SigHandler
source§fn 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 ==
.