pub enum Context<'a> {
HardwareTask(&'a Ident),
Idle(Core),
Init(Core),
SoftwareTask(&'a Ident),
}
Expand description
Execution context
Variants§
HardwareTask(&'a Ident)
A hardware task: #[exception]
or #[interrupt]
Idle(Core)
The idle
context
Init(Core)
The init
-ialization function
SoftwareTask(&'a Ident)
A software task: #[task]
Implementations§
Source§impl<'a> Context<'a>
impl<'a> Context<'a>
Sourcepub fn has_locals(&self, app: &App) -> bool
pub fn has_locals(&self, app: &App) -> bool
Whether this context has local static
variables
Sourcepub fn has_resources(&self, app: &App) -> bool
pub fn has_resources(&self, app: &App) -> bool
Whether this context has resources
Sourcepub fn uses_schedule(&self, app: &App) -> bool
pub fn uses_schedule(&self, app: &App) -> bool
Whether this context may use the schedule
API
Sourcepub fn uses_spawn(&self, app: &App) -> bool
pub fn uses_spawn(&self, app: &App) -> bool
Whether this context may use the spawn
API
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Context<'a>
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§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more