pub struct SecurityAuditLogger { /* private fields */ }
Expand description
Security audit logger
Implementations§
Source§impl SecurityAuditLogger
impl SecurityAuditLogger
Sourcepub async fn log_event(
&self,
event_type: String,
peer_id: PeerId,
details: HashMap<String, String>,
severity: AuditSeverity,
)
pub async fn log_event( &self, event_type: String, peer_id: PeerId, details: HashMap<String, String>, severity: AuditSeverity, )
Log security event
Sourcepub async fn get_recent_entries(
&self,
limit: Option<usize>,
) -> Vec<SecurityAuditEntry>
pub async fn get_recent_entries( &self, limit: Option<usize>, ) -> Vec<SecurityAuditEntry>
Get recent audit entries
Sourcepub async fn get_entries_by_severity(
&self,
severity: AuditSeverity,
) -> Vec<SecurityAuditEntry>
pub async fn get_entries_by_severity( &self, severity: AuditSeverity, ) -> Vec<SecurityAuditEntry>
Get entries by severity
Auto Trait Implementations§
impl Freeze for SecurityAuditLogger
impl !RefUnwindSafe for SecurityAuditLogger
impl Send for SecurityAuditLogger
impl Sync for SecurityAuditLogger
impl Unpin for SecurityAuditLogger
impl !UnwindSafe for SecurityAuditLogger
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more