pub struct FileAuditLogStore { /* private fields */ }Expand description
File-based audit log persistent storage (JSONL format: one JSON per line)
Applicable scenarios: single-machine deployment, lightweight audit archiving,
development debugging. For high-concurrency production scenarios, it is
recommended to combine AsyncAuditWriter + FileAuditLogStore so that a
background thread performs serial writes and avoids lock contention.
Implementations§
Trait Implementations§
Source§impl AuditLogStore for FileAuditLogStore
impl AuditLogStore for FileAuditLogStore
Source§fn append(&self, entry: &SqlAuditContext) -> Result<(), String>
fn append(&self, entry: &SqlAuditContext) -> Result<(), String>
Append an audit log entry (JSONL format; automatically masked before write)
Auto Trait Implementations§
impl !Freeze for FileAuditLogStore
impl RefUnwindSafe for FileAuditLogStore
impl Send for FileAuditLogStore
impl Sync for FileAuditLogStore
impl Unpin for FileAuditLogStore
impl UnsafeUnpin for FileAuditLogStore
impl UnwindSafe for FileAuditLogStore
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