pub trait Plugin {
// Required methods
fn metadata(&self) -> &'static PluginMetadata;
fn load(
&mut self,
handle: PluginHandle,
) -> impl Future<Output = Result<()>> + Send;
}Expand description
2026-09-26: The plugin abstraction. Every implementor today is a benchmark.
Required Methods§
Sourcefn metadata(&self) -> &'static PluginMetadata
fn metadata(&self) -> &'static PluginMetadata
2026-09-26: Who wrote this plugin, where it came from, and where to report it.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.