Enum task::KillReason
source · 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.