Enum wasefire_board_api::Event
source · pub enum Event<B: Api + ?Sized> {
Button(Event<B>),
Platform(Event),
Radio(Event),
Timer(Event<B>),
Uart(Event<B>),
Usb(Event),
Impossible(Impossible<B>),
}
Expand description
Events that interfaces may trigger.
Events are de-duplicated if the previous one was not processed yet, because some events may trigger repeatedly.
Variants§
Button(Event<B>)
Available on crate feature
api-button
only.Button event.
Platform(Event)
Available on crate feature
internal-api-platform
only.Platform event.
Radio(Event)
Available on crate feature
internal-api-radio
only.Radio event.
Timer(Event<B>)
Available on crate feature
api-timer
only.Timer event.
Uart(Event<B>)
Available on crate feature
api-uart
only.UART event.
Usb(Event)
Available on crate feature
internal-api-usb
only.USB event.
Impossible(Impossible<B>)
Dummy event for typing purposes.
Trait Implementations§
source§impl<B: Api> From<Event> for Event<B>
Available on crate features api-platform-protocol
and internal-api-platform
only.
impl<B: Api> From<Event> for Event<B>
Available on crate features
api-platform-protocol
and internal-api-platform
only.source§impl<B: Api> From<Event> for Event<B>
Available on crate features api-radio-ble
and internal-api-radio
only.
impl<B: Api> From<Event> for Event<B>
Available on crate features
api-radio-ble
and internal-api-radio
only.source§impl<B: Api> From<Event> for Event<B>
Available on crate features api-usb-serial
and internal-api-usb
only.
impl<B: Api> From<Event> for Event<B>
Available on crate features
api-usb-serial
and internal-api-usb
only.source§impl<B: Api + ?Sized> PartialEq for Event<B>
impl<B: Api + ?Sized> PartialEq for Event<B>
impl<B: Api + ?Sized> Eq for Event<B>
Auto Trait Implementations§
impl<B> Freeze for Event<B>where
B: ?Sized,
impl<B> RefUnwindSafe for Event<B>where
B: RefUnwindSafe + ?Sized,
<B as Api>::Button: RefUnwindSafe,
<B as Api>::Timer: RefUnwindSafe,
<B as Api>::Uart: RefUnwindSafe,
impl<B> Send for Event<B>where
B: ?Sized,
impl<B> Sync for Event<B>
impl<B> Unpin for Event<B>
impl<B> UnwindSafe for Event<B>where
B: UnwindSafe + ?Sized,
<B as Api>::Button: UnwindSafe,
<B as Api>::Timer: UnwindSafe,
<B as Api>::Uart: UnwindSafe,
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