logo
#[repr(C)]
pub struct TaskCb<Traits: PortThreading, PortTaskState: 'static = <Traits as PortThreading>::PortTaskState, TaskPriority: 'static = <Traits as KernelCfg1>::TaskPriority, TaskReadyQueueData: 'static = <<Traits as KernelCfg1>::TaskReadyQueue as Queue<Traits>>::PerTaskData> { pub port_task_state: PortTaskState, pub attr: &'static TaskAttr<Traits, TaskPriority>, /* private fields */ }
Expand description

Task control block - the state data of a task.

Fields

port_task_state: PortTaskState

Get a reference to PortTaskState in the task control block.

This is guaranteed to be placed at the beginning of the struct so that assembly code can refer to this easily.

attr: &'static TaskAttr<Traits, TaskPriority>

The static properties of the task.

Trait Implementations

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.

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.