Skip to main content

Plugin

Trait Plugin 

Source
pub trait Plugin: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn version(&self) -> &str;
}
Expand description

Base trait that every plugin must implement.

The trait is object-safe and requires Send + Sync so that plugin instances can be shared across threads.

Required Methods§

Source

fn name(&self) -> &str

Returns the unique name of this plugin.

Source

fn version(&self) -> &str

Returns the version string (e.g. "1.2.3").

Implementors§