pub trait AlertCallback: Send + Sync {
// Required method
fn on_alert(&self, event: &AuditEvent);
}Expand description
Trait for real-time audit alert handlers.
Implementations receive critical audit events as they occur. This enables immediate response to security-relevant events such as authentication failures and privilege escalation attempts.
Required Methods§
Sourcefn on_alert(&self, event: &AuditEvent)
fn on_alert(&self, event: &AuditEvent)
Called when a critical audit event is generated.