pub trait Plugin:
Send
+ Sync
+ 'static {
// Required methods
fn name(&self) -> String;
fn apply(self, ctx: &mut Ctx) -> Result<Disposer, PluginError>;
// Provided method
fn dependencies(&self) -> Vec<String> { ... }
}Expand description
Required Methods§
Provided Methods§
Sourcefn dependencies(&self) -> Vec<String>
fn dependencies(&self) -> Vec<String>
Names of plugins that must be activated before this one.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".