Trait xplane_plugin::Plugin [] [src]

pub trait Plugin: Sized {
    fn start() -> Option<Self>;
    fn enable(&mut self);
    fn disable(&mut self);
    fn info<'a, 'b, 'c>(&self) -> PluginInfo<'a, 'b, 'c>;
    fn stop(&mut self);
}

The trait that all plugins should implement

Required Methods

Called when X-Plane loads this plugin On success, returns a plugin object

Called when the plugin is enabled

Called when the plugin is disabled

Returns information on this plugin

Implementors