Type Alias VolumeInstance

Source
pub type VolumeInstance = Box<dyn Volume + 'static>;

Aliased Type§

pub struct VolumeInstance(/* private fields */);

Trait Implementations§

Source§

impl PluginControl for VolumeInstance

Source§

fn plugins_status(&self, _names: &keyexpr) -> Vec<PluginStatusRec<'_>>

Collects information of sub-plugins matching the _names key expression. The information is richer than the one returned by report(): it contains external information about the running plugin, such as its name, path on disk, load status, etc. Returns an empty list by default.
Source§

fn report(&self) -> PluginReport

Returns the current state of the running plugin. By default, the state is PluginReportLevel::Normal and the list of messages is empty. This can be overridden by the plugin implementation if the plugin is able to report its status: no connection to the database, etc.
Source§

impl StructVersion for VolumeInstance

Source§

fn struct_version() -> u64

The version of the structure which implements this trait. After any change in the structure or its dependencies which may affect the ABI, this version should be incremented.
Source§

fn struct_features() -> &'static str

The features enabled during compilation of the structure implementing this trait. Different features between the plugin and the host may cause ABI incompatibility even if the structure version is the same. Use concat_enabled_features! to generate this string
Source§

impl PluginInstance for VolumeInstance