#[repr(C)]pub union __SaHandler {
pub sa_handler: *mut extern "C" fn(c_int),
pub sa_sigaction: *mut extern "C" fn(c_int, *const SigInfoT, *mut c_void),
}Fields§
§sa_handler: *mut extern "C" fn(c_int)C: void (*sa_handler)(int)
用于 SA_SIGINFO 未设置时的普通处理器 (单参数)。
sa_sigaction: *mut extern "C" fn(c_int, *const SigInfoT, *mut c_void)C: void (*sa_sigaction)(int, siginfo_t *, void *)
用于 SA_SIGINFO 设置时的实时信号处理器 (三参数)。
Trait Implementations§
Source§impl Clone for __SaHandler
impl Clone for __SaHandler
Source§fn clone(&self) -> __SaHandler
fn clone(&self) -> __SaHandler
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for __SaHandler
impl Debug for __SaHandler
impl Copy for __SaHandler
Auto Trait Implementations§
impl Freeze for __SaHandler
impl RefUnwindSafe for __SaHandler
impl !Send for __SaHandler
impl !Sync for __SaHandler
impl Unpin for __SaHandler
impl UnwindSafe for __SaHandler
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)