pub trait Plugin: Send + Sync {
// Required methods
fn init(&self) -> Box<dyn Plugin>;
fn name(&self) -> &str;
// Provided method
fn call(
&self,
_state: *mut ShellState,
) -> Result<(), Box<dyn Error + Send + Sync>> { ... }
}
Expand description
The plugin trait that defines how a plugin object acts.