pub struct SecurityAuditLog { /* private fields */ }Expand description
Bounded in-memory audit log used by adapters and tests.
Implementations§
Source§impl SecurityAuditLog
impl SecurityAuditLog
Sourcepub fn with_capacity(max_events: usize) -> Self
pub fn with_capacity(max_events: usize) -> Self
Create an empty audit log with a maximum retained event count.
Sourcepub fn record(&self, event: SecurityAuditEvent)
pub fn record(&self, event: SecurityAuditEvent)
Append an event.
Sourcepub fn events(&self) -> Vec<SecurityAuditEvent>
pub fn events(&self) -> Vec<SecurityAuditEvent>
Snapshot events.
Sourcepub fn dropped_count(&self) -> u64
pub fn dropped_count(&self) -> u64
Number of receipts dropped because the retention bound was reached.
Trait Implementations§
Source§impl Clone for SecurityAuditLog
impl Clone for SecurityAuditLog
Source§fn clone(&self) -> SecurityAuditLog
fn clone(&self) -> SecurityAuditLog
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SecurityAuditLog
impl Debug for SecurityAuditLog
Auto Trait Implementations§
impl Freeze for SecurityAuditLog
impl RefUnwindSafe for SecurityAuditLog
impl Send for SecurityAuditLog
impl Sync for SecurityAuditLog
impl Unpin for SecurityAuditLog
impl UnsafeUnpin for SecurityAuditLog
impl UnwindSafe for SecurityAuditLog
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