pub struct MemoryAuditLog { /* private fields */ }Expand description
In-memory records, for tests and for callers who drain the trail themselves.
Implementations§
Source§impl MemoryAuditLog
impl MemoryAuditLog
pub fn new() -> Self
pub fn records(&self) -> Vec<AuditRecord>
pub fn drain(&self) -> Vec<AuditRecord>
Trait Implementations§
Source§impl AuditSink for MemoryAuditLog
impl AuditSink for MemoryAuditLog
fn write(&self, record: &AuditRecord) -> Result<(), AuditError>
Source§impl Debug for MemoryAuditLog
impl Debug for MemoryAuditLog
Auto Trait Implementations§
impl !Freeze for MemoryAuditLog
impl Forget for MemoryAuditLog
impl Move for MemoryAuditLog
impl RefUnwindSafe for MemoryAuditLog
impl Send for MemoryAuditLog
impl Sync for MemoryAuditLog
impl Unpin for MemoryAuditLog
impl UnsafeUnpin for MemoryAuditLog
impl UnwindSafe for MemoryAuditLog
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