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
SigDflDefault signal handling.
SigIgnRequest 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]
impl Debug for SigHandlerfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for SigHandler[src]
impl Clone for SigHandlerfn clone(&self) -> SigHandler[src]
fn clone(&self) -> SigHandlerReturns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl Copy for SigHandler[src]
impl Copy for SigHandlerimpl PartialEq for SigHandler[src]
impl PartialEq for SigHandlerfn eq(&self, other: &SigHandler) -> bool[src]
fn eq(&self, other: &SigHandler) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &SigHandler) -> bool[src]
fn ne(&self, other: &SigHandler) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for SigHandler
impl Send for SigHandlerimpl Sync for SigHandler
impl Sync for SigHandler