Struct cortex_m_rtfm::Local
[−]
[src]
pub struct Local<D, T> { /* fields omitted */ }
Task local data
This data can only be accessed by the task T
Methods
impl<T, TASK> Local<T, TASK>
[src]
const fn new(value: T) -> Self
Creates a task local variable with some initial value
fn borrow<'task>(&'static self, _task: &'task TASK) -> &'task T
Borrows the task local data for the duration of the task
fn borrow_mut<'task>(&'static self, _task: &'task mut TASK) -> &'task mut T
Mutably borrows the task local data for the duration of the task