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§
Sourcefn name(&self) -> &'static str
fn name(&self) -> &'static str
Plugin name (matches the corresponding Plugin::name return).
Sourcefn depends_on(&self) -> &'static [&'static str]
fn depends_on(&self) -> &'static [&'static str]
Declared dependencies (matches Plugin::depends_on).
Sourcefn type_id(&self) -> TypeId
fn type_id(&self) -> TypeId
Concrete plugin type id, for App::is_plugin_added.