Struct cortex_m_rtfm::Static [] [src]

#[repr(C)]
pub struct Static<T> where
    T: ?Sized
{ /* fields omitted */ }

A value stored in a static variable

Methods

impl<T> Static<T>
[src]

Asserts that this value is stored in a static variable

Asserts that the reference r points to data stored in a static variable

Asserts that the reference r points to data stored in a static variable

Wraps a static reference into Static

Wraps a mutable static reference into Static

Trait Implementations

impl<T> Resource for Static<T> where
    T: Send
[src]

The data protected by the resource

Borrows the resource data for the duration of a critical section Read more

Mutable variant of borrow

Claims the resource data for the span of the closure f. For the duration of the closure other tasks that may access the resource data are prevented from preempting the current task. Read more

Mutable variant of claim

impl<T> Deref for Static<T>
[src]

impl<T> DerefMut for Static<T>
[src]