Enum rtic_syntax::Context[][src]

pub enum Context<'a> {
    Idle,
    Init,
    SoftwareTask(&'a Ident),
    HardwareTask(&'a Ident),
}

Execution context

Variants

Idle

The idle context

Init

The init-ialization function

SoftwareTask(&'a Ident)

A software task: #[task]

HardwareTask(&'a Ident)

A hardware task: #[exception] or #[interrupt]

Implementations

impl<'a> Context<'a>[src]

pub fn ident(&self, app: &'a App) -> &'a Ident[src]

The identifier of this context

pub fn is_idle(&self) -> bool[src]

Is this the idle context?

pub fn is_init(&self) -> bool[src]

Is this the init-ialization context?

pub fn runs_once(&self) -> bool[src]

Whether this context runs only once

pub fn has_locals(&self, app: &App) -> bool[src]

Whether this context has local static variables

pub fn has_resources(&self, app: &App) -> bool[src]

Whether this context has resources

Trait Implementations

impl<'a> Clone for Context<'a>[src]

impl<'a> Copy for Context<'a>[src]

Auto Trait Implementations

impl<'a> !RefUnwindSafe for Context<'a>

impl<'a> !Send for Context<'a>

impl<'a> !Sync for Context<'a>

impl<'a> Unpin for Context<'a>

impl<'a> !UnwindSafe for Context<'a>

Blanket Implementations

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

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

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

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> 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.