Struct rtic_syntax::ast::HardwareTask
source · #[non_exhaustive]pub struct HardwareTask {
pub args: HardwareTaskArgs,
pub cfgs: Vec<Attribute>,
pub attrs: Vec<Attribute>,
pub context: Box<Pat>,
pub stmts: Vec<Stmt>,
pub is_extern: bool,
}
Expand description
A hardware 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: HardwareTaskArgs
Hardware 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
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 HardwareTask
impl RefUnwindSafe for HardwareTask
impl !Send for HardwareTask
impl !Sync for HardwareTask
impl Unpin for HardwareTask
impl UnwindSafe for HardwareTask
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