pub trait Plugin: Send + Sync {
// Required method
fn name(&self) -> &str;
// Provided methods
fn version(&self) -> &str { ... }
fn description(&self) -> &str { ... }
fn initialize(&mut self) -> Result<(), Error> { ... }
fn register_factories(
&self,
_registry: &FactoryRegistry,
) -> Result<(), Error> { ... }
fn shutdown(&mut self) -> Result<(), Error> { ... }
}Expand description
Plugin trait for extending the simulator.
Plugins can register factories, add event handlers, and customize behavior.
Required Methods§
Provided Methods§
Sourcefn description(&self) -> &str
fn description(&self) -> &str
Get plugin description.
Sourcefn initialize(&mut self) -> Result<(), Error>
fn initialize(&mut self) -> Result<(), Error>
Initialize the plugin (called when loaded).
Sourcefn register_factories(&self, _registry: &FactoryRegistry) -> Result<(), Error>
fn register_factories(&self, _registry: &FactoryRegistry) -> Result<(), Error>
Register device factories with the registry.