Struct r3::kernel::task::StackHunk

source ·
pub struct StackHunk<System>(_)
where
    System: KernelStatic<System>
;
Expand description

Specifies the Hunk to use as a task’s stack when included in the task’s property Bag.

A kernel might choose to ignore this if StackHunk is not supported.

If a StackHunk is given, the stack size (TaskDefiner::stack_size) must be specified explicitly.

Implementations

Construct StackHunk.

Safety

When activating the assocaited task, the kernel will mutably borrow the region starting at hunk without no borrow checking.

Get the referenced Hunk.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. 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.