Enum nix::sys::signal::SigHandler
[−]
[src]
pub enum SigHandler { SigDfl, SigIgn, Handler(extern "C" fn(_: c_int)), SigAction(extern "C" fn(_: c_int, _: *mut siginfo_t, _: *mut c_void)), }
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
impl Debug for SigHandler
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for SigHandler
[src]
fn clone(&self) -> SigHandler
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for SigHandler
[src]
impl PartialEq for SigHandler
[src]
fn eq(&self, __arg_0: &SigHandler) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &SigHandler) -> bool
[src]
This method tests for !=
.