Enum task::KillReason
pub enum KillReason {
Requested,
Panic(PanicInfoOwned),
Exception(u8),
}
Expand description
The list of possible reasons that a given Task
was killed prematurely.
Variants§
Requested
The user or another task requested that this Task
be killed.
For example, the user pressed Ctrl + C
on the shell window that started a Task
.
Panic(PanicInfoOwned)
A Rust-level panic occurred while running this Task
.
Exception(u8)
A non-language-level problem, such as a Page Fault or some other machine exception. The number of the exception is included, e.g., 15 (0xE) for a Page Fault.
Trait Implementations§
§impl Debug for KillReason
impl Debug for KillReason
Auto Trait Implementations§
impl !RefUnwindSafe for KillReason
impl Send for KillReason
impl !Sync for KillReason
impl Unpin for KillReason
impl !UnwindSafe for KillReason
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