Trait freya::core::prelude::FreyaPlugin

pub trait FreyaPlugin {
    // Required method
    fn on_event(&mut self, event: &PluginEvent<'_>, handle: PluginHandle);
}
Expand description

Skeleton for Freya plugins.

Required Methods§

fn on_event(&mut self, event: &PluginEvent<'_>, handle: PluginHandle)

React on events emitted by Freya.

Implementors§