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 for SigHandler
impl PartialEq 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 ==
.impl Copy for SigHandler
impl Eq 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§
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