pub trait SecurityEventSink: Send {
// Required method
fn push(
&mut self,
category: SecurityEventCategory,
source: &'static str,
detail: String,
);
}Expand description
Abstract sink for security events raised during context assembly.
Implemented in zeph-core by a stack-local adapter that appends to
Agent<C>::runtime.metrics.security_events. Using a trait keeps this crate
free of zeph-core internal types.
Required Methods§
Sourcefn push(
&mut self,
category: SecurityEventCategory,
source: &'static str,
detail: String,
)
fn push( &mut self, category: SecurityEventCategory, source: &'static str, detail: String, )
Record a security event.