Skip to main content

audit_component_infallible

Function audit_component_infallible 

Source
pub fn audit_component_infallible<T, StartFn, StartFut, ShutdownFn, ShutdownFut, FlushFn, FlushFut>(
    resources: T,
    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 for hooks that cannot fail.

This is the preferred entrypoint when product audit hooks already handle write failures internally and return (). It preserves the same component graph and feature-provided dependencies as audit_component without forcing every product to wrap each hook in Ok(()).