pub trait ProviderBeforeApplicationShutdown:
Send
+ Sync
+ 'static {
// Provided method
fn before_application_shutdown(
&self,
_module_ref: ModuleRef,
_signal: Option<String>,
) -> BoxFuture<'static, Result<()>> { ... }
}Expand description
Lifecycle hook for singleton providers that need async work before listeners close.
Provided Methods§
fn before_application_shutdown( &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".