Plugin

Trait Plugin 

Source
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§

Source

fn metadata(&self) -> &'static PluginMetadata

2026-09-26: Who wrote this plugin, where it came from, and where to report it.

Source

fn load( &mut self, handle: PluginHandle, ) -> impl Future<Output = Result<()>> + Send

2026-09-26: First step. Acquire resources, provision artifacts, verify the host has what this plugin needs. An Err ends the run with a failed setup frame, so its message must name what is missing.

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.

Implementors§