Struct axsignal::SignalHandler
source · pub struct SignalHandler {
pub handlers: [Option<SigAction>; 64],
}
Expand description
处理所有信号的结构
Fields§
§handlers: [Option<SigAction>; 64]
handlers[i]
stands for the handler of signal i+1
Implementations§
source§impl SignalHandler
impl SignalHandler
sourcepub fn get_action(&self, sig_num: usize) -> Option<&SigAction>
pub fn get_action(&self, sig_num: usize) -> Option<&SigAction>
To get the action of a signal with the signal number
Trait Implementations§
source§impl Clone for SignalHandler
impl Clone for SignalHandler
source§fn clone(&self) -> SignalHandler
fn clone(&self) -> SignalHandler
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 moreAuto Trait Implementations§
impl RefUnwindSafe for SignalHandler
impl Send for SignalHandler
impl Sync for SignalHandler
impl Unpin for SignalHandler
impl UnwindSafe for SignalHandler
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