Skip to main content

PluginProvider

Trait PluginProvider 

Source
pub trait PluginProvider: Send + Sync {
    // Required method
    fn get(&self, name: &str) -> Option<Arc<dyn Plugin>>;
}
Expand description

Plugin provider trait

Required Methods§

Source

fn get(&self, name: &str) -> Option<Arc<dyn Plugin>>

Get a plugin by name

§Arguments
  • name - The name of the plugin to get
§Returns
  • Option<Arc<dyn Plugin>> - The plugin if found, None otherwise

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§