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§
Sourcefn version(&self) -> Option<&str>
fn version(&self) -> Option<&str>
Returns the version of the loaded plugin (usually the version of the plugin’s crate)
Sourcefn long_version(&self) -> Option<&str>
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)
Sourcefn state(&self) -> PluginState
fn state(&self) -> PluginState
Returns the plugin’s state (Declared, Loaded, Started)
Sourcefn report(&self) -> PluginReport
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