[−][src]Struct r3::kernel::cfg::CfgTaskBuilder
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]
System: Send,
impl<System> Sync for CfgTaskBuilder<System> where
System: Sync,
[src]
System: Sync,
impl<System> Unpin for CfgTaskBuilder<System> where
System: Unpin,
[src]
System: Unpin,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,