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
impl Copy for SigHandler
impl Eq for SigHandler
impl StructuralPartialEq for SigHandler
Auto Trait Implementations§
impl Freeze for SigHandler
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)