pub struct AuditLog { /* private fields */ }Expand description
Append-only audit log.
Implementations§
Source§impl AuditLog
impl AuditLog
Sourcepub fn append(&mut self, session_id: impl Into<SessionId>, event: AuditEvent)
pub fn append(&mut self, session_id: impl Into<SessionId>, event: AuditEvent)
Append an entry.
Sourcepub fn entries_for(&self, session_id: &str) -> Vec<&AuditEntry>
pub fn entries_for(&self, session_id: &str) -> Vec<&AuditEntry>
Get all entries for a session.
Sourcepub fn all(&self) -> &[AuditEntry]
pub fn all(&self) -> &[AuditEntry]
All entries.
Trait Implementations§
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