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
fn start() -> Option<Self>
Called when X-Plane loads this plugin On success, returns a plugin object
fn enable(&mut self)
Called when the plugin is enabled
fn disable(&mut self)
Called when the plugin is disabled
fn info<'a, 'b, 'c>(&self) -> PluginInfo<'a, 'b, 'c>
Returns information on this plugin