Trait avr_oxide::event::EventSource

source ·
pub trait EventSource {
    // Required methods
    fn listen(&'static self);
    fn process_event(&self, evt: OxideEvent);
}
Expand description

An event source is something which generates events for later processing.

Required Methods§

source

fn listen(&'static self)

source

fn process_event(&self, evt: OxideEvent)

Implementors§

source§

impl<S> EventSource for Button<'_, S>
where S: EventSink,

source§

impl<S> EventSource for SerialBus<S>
where S: EventSink,

source§

impl<S> EventSource for SerialPort<'_, S>
where S: EventSink,

source§

impl<T, S> EventSource for MasterClock<'_, T, S>
where T: 'static + TimerControl, S: EventSink,

source§

impl<T, S> EventSource for WallClock<'_, T, S>
where T: 'static + TimerControl + RtcTimerCalibration, S: EventSink,