logo
pub struct TaskAttr<Traits: KernelCfg1, TaskPriority: 'static = <Traits as KernelCfg1>::TaskPriority> {
    pub entry_point: unsafe extern "C" fn(_: ClosureEnv),
    pub entry_param: ClosureEnv,
    pub stack: StackHunk<Traits>,
    pub priority: TaskPriority,
}
Expand description

The static properties of a task.

Fields

entry_point: unsafe extern "C" fn(_: ClosureEnv)

The entry point of the task.

Safety

This is only meant to be used by a kernel port, as a task entry point, not by user code. Using this in other ways may cause an undefined behavior.

entry_param: ClosureEnv

The parameter supplied for entry_point.

stack: StackHunk<Traits>

The hunk representing the stack region for the task.

priority: TaskPriority

The initial base priority 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.