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.

Trait Implementations§

Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Converts the given value to a String. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.