Skip to main content

shutdown_audit_component

Function shutdown_audit_component 

Source
pub fn shutdown_audit_component<T, RecordFn, RecordFut, FlushFn, FlushFut>(
    resources: T,
    record_server_shutdown: RecordFn,
    flush_audit_manager: FlushFn,
) -> RuntimeComponentBundleRegistration<impl RuntimeComponentBundle>
where T: Send + 'static, RecordFn: FnOnce(T) -> RecordFut + Send + Sync + 'static, RecordFut: Future<Output = Result<(), String>> + Send + 'static, FlushFn: FnOnce(()) -> FlushFut + Send + Sync + 'static, FlushFut: Future<Output = Result<(), String>> + Send + 'static,
Expand description

Creates the audit shutdown component bundle without the server-start phase.

Use this only when a product intentionally records server startup elsewhere. Normal Aster services should use audit_component so startup, shutdown, and manager flush share one lifecycle component. With the mail-outbox-dependency feature enabled, the shutdown audit phase automatically runs after the mail outbox drain component.