Skip to main content

ProviderOnApplicationBootstrap

Trait ProviderOnApplicationBootstrap 

Source
pub trait ProviderOnApplicationBootstrap:
    Send
    + Sync
    + 'static {
    // Provided method
    fn on_application_bootstrap(
        &self,
        _module_ref: ModuleRef,
    ) -> BoxFuture<'static, Result<()>> { ... }
}
Expand description

Lifecycle hook for singleton providers that need async startup work.

Provided Methods§

Source

fn on_application_bootstrap( &self, _module_ref: ModuleRef, ) -> BoxFuture<'static, Result<()>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§