Extension

Trait Extension 

Source
pub trait Extension: Send + Sync {
    // Required methods
    fn name(&self) -> &str;
    fn init(&self, config: &Config) -> Result<(), AgentError>;
}
Expand description

Trait for optional extensions that can be loaded at runtime.

Required Methods§

Source

fn name(&self) -> &str

Human‑readable name of the extension.

Source

fn init(&self, config: &Config) -> Result<(), AgentError>

Initialise the extension with access to configuration and client.

Implementors§