pub trait ProviderOnModuleDestroy:
Send
+ Sync
+ 'static {
// Provided method
fn on_module_destroy(
&self,
_module_ref: ModuleRef,
_signal: Option<String>,
) -> BoxFuture<'static, Result<()>> { ... }
}Expand description
Lifecycle hook for singleton providers that need async teardown before shutdown starts.
Provided Methods§
fn on_module_destroy( &self, _module_ref: ModuleRef, _signal: Option<String>, ) -> BoxFuture<'static, Result<()>>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".