[][src]Struct freertos_rs::Task

pub struct Task { /* fields omitted */ }

Handle for a FreeRTOS task

Methods

impl Task[src]

pub fn new() -> TaskBuilder[src]

Prepare a builder object for the new task.

pub fn get_name(&self) -> Result<String, ()>[src]

Get the name of the current task.

pub fn current() -> Result<Task, FreeRtosError>[src]

Try to find the task of the current execution context.

pub fn set_notification_value(&self, val: u32)[src]

Forcibly set the notification value for this task.

pub fn notify(&self, notification: TaskNotification)[src]

Notify this task.

pub fn notify_from_isr(
    &self,
    context: &InterruptContext,
    notification: TaskNotification
) -> Result<(), FreeRtosError>
[src]

Notify this task from an interrupt.

pub fn take_notification<D: DurationTicks>(
    &self,
    clear: bool,
    wait_for: D
) -> u32
[src]

Take the notification and either clear the notification value or decrement it by one.

pub fn wait_for_notification<D: DurationTicks>(
    &self,
    clear_bits_enter: u32,
    clear_bits_exit: u32,
    wait_for: D
) -> Result<u32, FreeRtosError>
[src]

Wait for a notification to be posted.

pub fn get_stack_high_water_mark(&self) -> u32[src]

Get the minimum amount of stack that was ever left on this task.

Trait Implementations

impl Debug for Task[src]

impl Send for Task[src]

Auto Trait Implementations

impl !Sync for Task

Blanket Implementations

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> Into<U> for T where
    U: From<T>, 
[src]

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

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.

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

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

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