Skip to main content

audit_component_with_writer_after

Function audit_component_with_writer_after 

Source
pub fn audit_component_with_writer_after<T, StartFn, StartFut, ShutdownFn, ShutdownFut>(
    resources: T,
    writer: Arc<AuditWriter>,
    drain_timeout: Duration,
    shutdown_dependencies: &'static [&'static str],
    record_server_start: StartFn,
    record_server_shutdown: ShutdownFn,
) -> 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,
Expand description

Owned audit bundle with explicit producer dependencies, for example a follower with tasks but no mail outbox. Writer startup still precedes product hooks; stop follows every declared producer. Use this rather than registering placeholder components to satisfy default edges.