Enum nix::sys::signal::SigHandler
pub enum SigHandler {
SigDfl,
SigIgn,
Handler(extern "C" fn(libc::c_int)),
SigAction(extern "C" fn(libc::c_int, *mut libc::siginfo_t, *mut libc::c_void)),
}
Documentation
A signal handler.
Variants
SigDfl
Default signal handling.
SigIgn
Request that the signal be ignored.
Handler(extern "C" fn(libc::c_int))
extern "C" fn(libc::c_int)
Use the given signal-catching function, which takes in the signal.
SigAction(extern "C" fn(libc::c_int, *mut libc::siginfo_t, *mut libc::c_void))
extern "C" fn(libc::c_int, *mut libc::siginfo_t, *mut libc::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 Clone for SigHandler
fn clone(&Self) -> SigHandler
impl Copy for SigHandler
impl Debug for SigHandler
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Result
impl Eq for SigHandler
impl Hash for SigHandler
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()
impl PartialEq<SigHandler> for SigHandler
fn eq(&Self, other: &SigHandler) -> bool
fn ne(&Self, other: &SigHandler) -> bool
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
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T