logo
#[repr(transparent)]
pub struct TaskRef<'a, System: KernelBase>(_, _);
Expand description

Represents a single borrowed task in a system.

This type is ABI-compatible with System::RawTaskId. It’s logically equivalent to &'a Task but instead stores RawTaskId directly.

See Task for the owned counterpart and the description of this kernel object. See TaskMethods for the operations provided by this handle type.

Implementations

Construct a TaskDefiner to define a task in a configuration function.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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 !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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.