Struct r3_core::kernel::task::Task

source ·
#[repr(transparent)]
pub struct Task<System: NotSupportedYet>(_);
Expand description

Represents a single task in a system.

This type is ABI-compatible with System::RawTaskId.

See TaskRef for the borrowed counterpart. See TaskMethods for the operations provided by this handle type.

Relation to Other Specifications: Present in almost every real-time operating system.

Task States

A task may be in one of the following states:

  • Dormant — The task is not executing, doesn’t have an associated execution thread, and can be activated.

  • Ready — The task has an associated execution thread, which is ready to be scheduled to the CPU

  • Running — The task has an associated execution thread, which is currently scheduled to the CPU

  • Waiting — The task has an associated execution thread, which is currently blocked by a blocking operation

Trait Implementations

Formats the value using the given formatter. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more
The system type this object pertains to.
Construct a Task from RawTaskId. Read more
Get the raw RawTaskId value representing this object.

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.

Start the execution of the task.
Interrupt any ongoing wait operations undertaken by the task. Read more
Make the task’s token available, unblocking Kernel::park now or in the future. Read more
Make exactly one new token available for the task, unblocking Kernel::park now or in the future. Read more
Set the task’s base priority. Read more
Get the task’s base priority. Read more
Get the task’s effective priority. 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.