Skip to main content

audit_component_after

Function audit_component_after 

Source
pub fn audit_component_after<T, StartFn, StartFut, ShutdownFn, ShutdownFut, FlushFn, FlushFut>(
    resources: T,
    shutdown_dependencies: &'static [&'static str],
    record_server_start: StartFn,
    record_server_shutdown: ShutdownFn,
    flush_audit_manager: FlushFn,
) -> RuntimeComponentBundleRegistration<impl RuntimeComponentBundle>
where T: Clone + Send + 'static, StartFn: FnOnce(T) -> StartFut + Send + Sync + 'static, StartFut: Future<Output = Result<(), String>> + Send + 'static, ShutdownFn: FnOnce(T) -> ShutdownFut + Send + Sync + 'static, ShutdownFut: Future<Output = Result<(), String>> + Send + 'static, FlushFn: FnOnce(()) -> FlushFut + Send + Sync + 'static, FlushFut: Future<Output = Result<(), String>> + Send + 'static,
Expand description

Creates the full audit lifecycle component bundle with caller-provided shutdown dependencies for the server-shutdown audit phase.

Use this when a product has another product-neutral component that must finish before recording server_shutdown. The audit-manager flush still runs after AUDIT_LOGS_COMPONENT.