Enum axsignal::action::SignalDefault
source · pub enum SignalDefault {
Terminate,
Ignore,
Core,
Stop,
Cont,
}
Expand description
没有显式指定处理函数时的默认行为
Variants§
Terminate
终止进程
Ignore
忽略信号
Core
终止进程并转储核心,即程序当时的内存状态记录下来,保存在一个文件中,但当前未实现保存,直接退出进程
Stop
暂停进程执行
Cont
恢复进程执行
Implementations§
source§impl SignalDefault
impl SignalDefault
sourcepub fn get_action(signal: SignalNo) -> Self
pub fn get_action(signal: SignalNo) -> Self
Get the default action of a signal
Auto Trait Implementations§
impl RefUnwindSafe for SignalDefault
impl Send for SignalDefault
impl Sync for SignalDefault
impl Unpin for SignalDefault
impl UnwindSafe for SignalDefault
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