pub struct AuditLog { /* private fields */ }Expand description
Thread-safe audit log with bounded capacity
Implementations§
Source§impl AuditLog
impl AuditLog
Sourcepub fn log(&self, entry: AuditEntry)
pub fn log(&self, entry: AuditEntry)
Log a new audit entry
Sourcepub fn entries(&self) -> Vec<AuditEntry>
pub fn entries(&self) -> Vec<AuditEntry>
Get all audit entries
Sourcepub fn entries_for_session(&self, session_id: &str) -> Vec<AuditEntry>
pub fn entries_for_session(&self, session_id: &str) -> Vec<AuditEntry>
Get entries for a specific session
Auto Trait Implementations§
impl !Freeze for AuditLog
impl RefUnwindSafe for AuditLog
impl Send for AuditLog
impl Sync for AuditLog
impl Unpin for AuditLog
impl UnsafeUnpin for AuditLog
impl UnwindSafe for AuditLog
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