pub trait Plugin: Send + Sync {
// Required method
fn build(
&self,
app: &mut AppBuilder,
) -> impl Future<Output = Result<(), StdError>> + Send;
// Provided method
fn dependencies(&self) -> Dependencies { ... }
}Required Methods§
Provided Methods§
fn dependencies(&self) -> Dependencies
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.