Skip to main content

PluginMetadata

Trait PluginMetadata 

Source
pub trait PluginMetadata: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn depends_on(&self) -> &'static [&'static str];
    fn type_id(&self) -> TypeId;
}
Expand description

Type-erased plugin metadata recorded by App::add_plugin.

Carries the plugin’s name() and depends_on() so is_plugin_added / topological queries can answer without re- running the build closure.

Required Methods§

Source

fn name(&self) -> &'static str

Plugin name (matches the corresponding Plugin::name return).

Source

fn depends_on(&self) -> &'static [&'static str]

Declared dependencies (matches Plugin::depends_on).

Source

fn type_id(&self) -> TypeId

Concrete plugin type id, for App::is_plugin_added.

Implementors§