pub struct AsyncAuditWriter { /* private fields */ }Expand description
Asynchronous audit writer: writes audit logs via a background thread to avoid blocking the main thread.
Uses an std::sync::mpsc channel to send logs to a background thread that
handles storage. Call shutdown to wait for the background thread to exit
and return all written logs.
Implementations§
Source§impl AsyncAuditWriter
impl AsyncAuditWriter
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for AsyncAuditWriter
impl RefUnwindSafe for AsyncAuditWriter
impl Send for AsyncAuditWriter
impl Sync for AsyncAuditWriter
impl Unpin for AsyncAuditWriter
impl UnsafeUnpin for AsyncAuditWriter
impl UnwindSafe for AsyncAuditWriter
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