pub enum ExitEvent {
FromDrive,
FromSignal,
}Expand description
Bot退出事件
Variants§
FromDrive
从驱动器传入的退出
FromSignal
从外部程序信号传入的退出信号
- Unix 平台:
- SIGHUP (终端挂起)
- SIGALRM (定时器超时)
- SIGINT (Ctrl+C 中断)
- SIGQUIT (Ctrl+\ 退出)
- SIGTERM (终止信号)
- Windows 平台:
- Ctrl+Break
- Ctrl+C
- 控制台关闭
- 用户注销
- 系统关机
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExitEvent
impl RefUnwindSafe for ExitEvent
impl Send for ExitEvent
impl Sync for ExitEvent
impl Unpin for ExitEvent
impl UnsafeUnpin for ExitEvent
impl UnwindSafe for ExitEvent
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