[−][src]Struct rtfm_syntax::ast::App
The #[app]
attribute
Fields
args: AppArgs
The arguments to the #[app]
attribute
name: Ident
The name of the const
item on which the #[app]
attribute has been placed
inits: Inits
Per-core #[init]
functions
idles: Idles
Per-core #[idle]
functions
late_resources: Map<LateResource>
Late (runtime initialized) resources
resources: Map<Resource>
Early (compile time initialized) resources
hardware_tasks: Map<HardwareTask>
Hardware tasks: #[task(binds = ..)]
s
software_tasks: Map<SoftwareTask>
Software tasks: #[task]
extern_interrupts: ExternInterrupts
Interrupts used to dispatch software tasks
Methods
impl App
[src]
pub fn uses_schedule(&self, core: u8) -> bool
[src]
Whether this core
uses the schedule
API
pub fn resource(&self, name: &Ident) -> Option<(&LateResource, Option<&Expr>)>
[src]
Returns information about the resource that matches name
pub fn resources<'a>(
&'a self,
analysis: &'a Analysis
) -> impl Iterator<Item = (&'a Ident, &'a LateResource, Option<&'a Expr>, &'a Location)>
[src]
&'a self,
analysis: &'a Analysis
) -> impl Iterator<Item = (&'a Ident, &'a LateResource, Option<&'a Expr>, &'a Location)>
Returns an iterator over all live resources
pub fn schedule_callers<'a>(
&'a self
) -> impl Iterator<Item = (Context<'a>, &'a Set<Ident>)>
[src]
&'a self
) -> impl Iterator<Item = (Context<'a>, &'a Set<Ident>)>
Iterates over all spawn callers
pub fn spawn_callers<'a>(
&'a self
) -> impl Iterator<Item = (Context<'a>, &'a Set<Ident>)>
[src]
&'a self
) -> impl Iterator<Item = (Context<'a>, &'a Set<Ident>)>
Iterates over all spawn callers
Trait Implementations
Auto Trait Implementations
impl !Send for App
impl Unpin for App
impl !Sync for App
impl !UnwindSafe for App
impl !RefUnwindSafe for App
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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.
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,