pub struct TaskBuilder { /* private fields */ }
Expand description
Helper for spawning a new task. Instantiate with Task::new()
.
Implementations§
Source§impl TaskBuilder
impl TaskBuilder
Sourcepub fn stack_size(&mut self, stack_size: u16) -> &mut Self
pub fn stack_size(&mut self, stack_size: u16) -> &mut Self
Set the stack size, in words.
Sourcepub fn priority(&mut self, priority: TaskPriority) -> &mut Self
pub fn priority(&mut self, priority: TaskPriority) -> &mut Self
Set the task’s priority.
Trait Implementations§
Source§impl ComputeTaskBuilder for TaskBuilder
impl ComputeTaskBuilder for TaskBuilder
fn compute<F, R>(&self, func: F) -> Result<ComputeTask<R>, FreeRtosError>
Auto Trait Implementations§
impl Freeze for TaskBuilder
impl RefUnwindSafe for TaskBuilder
impl Send for TaskBuilder
impl Sync for TaskBuilder
impl Unpin for TaskBuilder
impl UnwindSafe for TaskBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more