Plugin

Trait Plugin 

Source
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§

Source

fn build( &self, app: &mut AppBuilder, ) -> impl Future<Output = Result<(), StdError>> + Send

Provided Methods§

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§