zenoh_plugin_trait

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§