Struct rtic_syntax::ast::SoftwareTask
source · #[non_exhaustive]pub struct SoftwareTask {
pub args: SoftwareTaskArgs,
pub cfgs: Vec<Attribute>,
pub attrs: Vec<Attribute>,
pub context: Box<Pat>,
pub inputs: Vec<PatType>,
pub stmts: Vec<Stmt>,
pub is_extern: bool,
}
Expand description
A software task
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.args: SoftwareTaskArgs
Software task metadata
cfgs: Vec<Attribute>
#[cfg]
attributes like #[cfg(debug_assertions)]
attrs: Vec<Attribute>
Attributes that will apply to this interrupt handler
context: Box<Pat>
The context argument
inputs: Vec<PatType>
The inputs of this software task
stmts: Vec<Stmt>
The statements that make up the task handler
is_extern: bool
The task is declared externally
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SoftwareTask
impl RefUnwindSafe for SoftwareTask
impl !Send for SoftwareTask
impl !Sync for SoftwareTask
impl Unpin for SoftwareTask
impl UnwindSafe for SoftwareTask
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