pub struct FileAudit { /* private fields */ }Expand description
A durable, queryable audit sink: appends each event as one JSON line (JSONL) to a file,
flushed per record so a crash loses at most the in-flight event. The file is a stable
append-only log a SIEM or jq can tail and query, unlike the ephemeral tracing
stream. A write failure is logged (the request path must not fail because audit I/O
did) — operators should alarm on the audit write failed event.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for FileAudit
impl !RefUnwindSafe for FileAudit
impl Send for FileAudit
impl Sync for FileAudit
impl Unpin for FileAudit
impl UnsafeUnpin for FileAudit
impl UnwindSafe for FileAudit
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