PluginStatus

Trait PluginStatus 

Source
pub trait PluginStatus {
    // Required methods
    fn name(&self) -> &str;
    fn id(&self) -> &str;
    fn version(&self) -> Option<&str>;
    fn long_version(&self) -> Option<&str>;
    fn path(&self) -> &str;
    fn state(&self) -> PluginState;
    fn report(&self) -> PluginReport;
}
Expand description

Trait allowing getting all information about the plugin

Required Methods§

Source

fn name(&self) -> &str

Returns the name of the plugin

Source

fn id(&self) -> &str

Returns the ID of the plugin

Source

fn version(&self) -> Option<&str>

Returns the version of the loaded plugin (usually the version of the plugin’s crate)

Source

fn long_version(&self) -> Option<&str>

Returns the long version of the loaded plugin (usually the version of the plugin’s crate + git commit hash)

Source

fn path(&self) -> &str

Returns the path of the loaded plugin

Source

fn state(&self) -> PluginState

Returns the plugin’s state (Declared, Loaded, Started)

Source

fn report(&self) -> PluginReport

Returns the plugin’s current report: a list of messages and the severity level When the status is changed, the report is cleared

Implementors§