pub struct Idle {
pub args: IdleArgs,
pub attrs: Vec<Attribute>,
pub name: Ident,
pub context: Box<Pat>,
pub locals: Map<Local>,
pub stmts: Vec<Stmt>,
/* private fields */
}Expand description
The idle context
Fields§
§args: IdleArgsidle context metadata
attrs: Vec<Attribute>Attributes that will apply to this idle function
name: IdentThe name of the #[idle] function
context: Box<Pat>The context argument
locals: Map<Local>Static variables local to this context
stmts: Vec<Stmt>The statements that make up this idle function
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Idle
impl RefUnwindSafe for Idle
impl !Send for Idle
impl !Sync for Idle
impl Unpin for Idle
impl UnwindSafe for Idle
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