[][src]Struct r3::kernel::cfg::CfgTaskBuilder

#[must_use = "must call `finish()` to complete registration"]pub struct CfgTaskBuilder<System> { /* fields omitted */ }

Configuration builder type for Task.

Implementations

impl<System: Port> CfgTaskBuilder<System>[src]

pub const fn start(self, start: fn(_: usize)) -> Self[src]

[Required] Specify the task's entry point.

pub const fn param(self, param: usize) -> Self[src]

Specify the parameter to start. Defaults to 0.

pub const fn stack_size(self, stack_size: usize) -> Self[src]

Specify the task's stack size.

pub const fn stack_hunk(self, stack_hunk: StackHunk<System>) -> Self[src]

Specify the task's hunk.

pub const fn priority(self, priority: usize) -> Self[src]

[Required] Specify the task's initial base priority. Tasks with lower priority values execute first. The value must be in range 0..num_task_priority_levels.

pub const fn active(self, active: bool) -> Self[src]

Specify whether the task should be activated at system startup. Defaults to false (don't activate).

pub const fn finish(self, cfg: &mut CfgBuilder<System>) -> Task<System>[src]

Complete the definition of a task, returning a reference to the task.

Auto Trait Implementations

impl<System> Send for CfgTaskBuilder<System> where
    System: Send
[src]

impl<System> Sync for CfgTaskBuilder<System> where
    System: Sync
[src]

impl<System> Unpin for CfgTaskBuilder<System> where
    System: Unpin
[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.