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
SigDflDefault signal handling.
SigIgnRequest 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) -> SigHandlerimpl Copy for SigHandlerimpl Debug for SigHandler
fn fmt(&Self, f: &mut $crate::fmt::Formatter<'_>) -> $crate::fmt::Resultimpl Eq for SigHandlerimpl Hash for SigHandler
fn hash<__H: $crate::hash::Hasher>(&Self, state: &mut __H) -> ()impl PartialEq<SigHandler> for SigHandler
fn eq(&Self, other: &SigHandler) -> boolfn ne(&Self, other: &SigHandler) -> boolimpl StructuralEq for SigHandlerimpl StructuralPartialEq for SigHandlerAuto Trait Implementations
impl RefUnwindSafe for SigHandlerimpl Send for SigHandlerimpl Sync for SigHandlerimpl Unpin for SigHandlerimpl UnwindSafe for SigHandlerBlanket Implementations
impl<T> BorrowMut<T> for T
where
T: ?Sized,
where
T: ?Sized,
fn borrow_mut(&mut Self) -> &mut T