[−][src]Struct freertos_rs::Task
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]
&self,
context: &InterruptContext,
notification: TaskNotification
) -> Result<(), FreeRtosError>
Notify this task from an interrupt.
pub fn take_notification<D: DurationTicks>(
&self,
clear: bool,
wait_for: D
) -> u32
[src]
&self,
clear: bool,
wait_for: D
) -> u32
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]
&self,
clear_bits_enter: u32,
clear_bits_exit: u32,
wait_for: D
) -> Result<u32, FreeRtosError>
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
Auto Trait Implementations
Blanket Implementations
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.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,