pub enum Event<B: Api + ?Sized> {
Button(Event<B>),
Fingerprint(Event),
Gpio(Event<B>),
Platform(Event),
Timer(Event<B>),
Uart(Event<B>),
Usb(Event),
Vendor(Event<B>),
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.
Fingerprint(Event)
Available on crate feature
internal-api-fingerprint
only.Fingerprint event.
Gpio(Event<B>)
Available on crate feature
api-gpio
only.GPIO event.
Platform(Event)
Platform 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.
Vendor(Event<B>)
Available on crate feature
api-vendor
only.Vendor 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-fingerprint-matcher
and internal-api-fingerprint
only.
impl<B: Api> From<Event> for Event<B>
Available on crate features
api-fingerprint-matcher
and internal-api-fingerprint
only.Source§impl<B: Api> From<Event> for Event<B>
Available on crate features api-fingerprint-sensor
and internal-api-fingerprint
only.
impl<B: Api> From<Event> for Event<B>
Available on crate features
api-fingerprint-sensor
and internal-api-fingerprint
only.Source§impl<B: Api> From<Event> for Event<B>
Available on crate feature internal-api-fingerprint
only.
impl<B: Api> From<Event> for Event<B>
Available on crate feature
internal-api-fingerprint
only.Source§impl<B: Api> From<Event> for Event<B>
Available on crate features api-usb-ctap
and internal-api-usb
only.
impl<B: Api> From<Event> for Event<B>
Available on crate features
api-usb-ctap
and internal-api-usb
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>
impl<B> RefUnwindSafe for Event<B>where
<<B as Api>::Vendor as Api>::Event: RefUnwindSafe,
B: RefUnwindSafe + ?Sized,
<B as Api>::Button: RefUnwindSafe,
<B as Api>::Gpio: 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 as Api>::Vendor as Api>::Event: UnwindSafe,
B: UnwindSafe + ?Sized,
<B as Api>::Button: UnwindSafe,
<B as Api>::Gpio: 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