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§
Sourcefn init(&mut self)
fn init(&mut self)
Init method of the extension This will be called when the extension is loaded
Sourcefn unload(&mut self)
fn unload(&mut self)
Unload method of the extension This will be called when the extension is unloaded
Sourcefn notify(&mut self, message: ExtensionMessages)
fn notify(&mut self, message: ExtensionMessages)
Forward messages to the extension
Sourcefn get_info(&self) -> ExtensionInfo
fn get_info(&self) -> ExtensionInfo
Retrieve info from the exension