Skip to main content

Plugin

Trait Plugin 

Source
pub trait Plugin {
    // Required methods
    fn manifest() -> PluginManifest;
    fn execute(args: Vec<String>) -> ExecuteResult;
}
Expand description

Trait that plugins must implement

Required Methods§

Source

fn manifest() -> PluginManifest

Returns the plugin manifest describing the command

Source

fn execute(args: Vec<String>) -> ExecuteResult

Executes the plugin with the given arguments

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§