Enum rtic_syntax::Context [−][src]
Execution context
Variants
The idle
context
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,