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)
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-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.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