pub struct EventHandlerDecl {
pub event_type: String,
pub target_id: u32,
pub condition: String,
pub body: Block,
pub span: Span,
}Expand description
Interrupt / Hardware Event Handler: on_event(PinChange(18, RISING)) { ... }
Fields§
§event_type: String§target_id: u32§condition: String§body: Block§span: SpanTrait Implementations§
Source§impl Clone for EventHandlerDecl
impl Clone for EventHandlerDecl
Source§impl Debug for EventHandlerDecl
impl Debug for EventHandlerDecl
Source§impl<'de> Deserialize<'de> for EventHandlerDecl
impl<'de> Deserialize<'de> for EventHandlerDecl
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EventHandlerDecl
impl PartialEq for EventHandlerDecl
Source§impl Serialize for EventHandlerDecl
impl Serialize for EventHandlerDecl
impl StructuralPartialEq for EventHandlerDecl
Auto Trait Implementations§
impl Freeze for EventHandlerDecl
impl RefUnwindSafe for EventHandlerDecl
impl Send for EventHandlerDecl
impl Sync for EventHandlerDecl
impl Unpin for EventHandlerDecl
impl UnsafeUnpin for EventHandlerDecl
impl UnwindSafe for EventHandlerDecl
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