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
)