pub trait EventHandler<E> {
    // Required method
    fn handle_event(&mut self, event: E);
}
Expand description

The trait that plugins should implement in order to handle the given type of events.

The type parameter E corresponds to the type of the event.

Required Methods§

source

fn handle_event(&mut self, event: E)

Implementors§

source§

impl<'c, 'mp, 'mw> EventHandler<Indexed<Timed<RawMidiEvent>>> for JackHost<'c, 'mp, 'mw>

source§

impl<'c, 'mp, 'mw, 'e> EventHandler<Indexed<Timed<SysExEvent<'e>>>> for JackHost<'c, 'mp, 'mw>

source§

impl<E> EventHandler<E> for DummyEventHandler

source§

impl<S, E, M> EventHandler<E> for TestPlugin<S, E, M>
where E: PartialEq + Debug,

source§

impl<W> EventHandler<Timed<RawMidiEvent>> for MidiWriterWrapper<W>
where W: MidiWriter,