Extension

Trait Extension 

Source
pub trait Extension {
    // Required methods
    fn init(&mut self);
    fn unload(&mut self);
    fn notify(&mut self, message: ExtensionMessages);
    fn get_info(&self) -> ExtensionInfo;
}
Expand description

Extensions structure

Required Methods§

Source

fn init(&mut self)

Init method of the extension This will be called when the extension is loaded

Source

fn unload(&mut self)

Unload method of the extension This will be called when the extension is unloaded

Source

fn notify(&mut self, message: ExtensionMessages)

Forward messages to the extension

Source

fn get_info(&self) -> ExtensionInfo

Retrieve info from the exension

Implementors§