pub fn audit_component_after_infallible<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 = ()> + Send + 'static,
ShutdownFn: FnOnce(T) -> ShutdownFut + Send + Sync + 'static,
ShutdownFut: Future<Output = ()> + Send + 'static,
FlushFn: FnOnce(()) -> FlushFut + Send + Sync + 'static,
FlushFut: Future<Output = ()> + Send + 'static,Expand description
Creates the full audit lifecycle component with caller-provided shutdown dependencies for hooks that cannot fail.
Use this instead of audit_component_infallible when a product needs a
shutdown dependency other than the crate default.