pub trait Plugin {
// Required methods
fn manifest() -> PluginManifest;
fn execute(args: Vec<String>) -> ExecuteResult;
}Expand description
Trait that plugins must implement
Required Methods§
Sourcefn manifest() -> PluginManifest
fn manifest() -> PluginManifest
Returns the plugin manifest describing the command
Sourcefn execute(args: Vec<String>) -> ExecuteResult
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.