pub struct FileAuditBackend { /* private fields */ }Expand description
File-based audit backend that stores events as JSON lines.
Each audit event is written as a single JSON line, enabling efficient parsing and querying of log files.
Implementations§
Trait Implementations§
Source§impl AuditBackend for FileAuditBackend
impl AuditBackend for FileAuditBackend
Source§fn log_event<'life0, 'async_trait>(
&'life0 self,
event: AuditEvent,
) -> Pin<Box<dyn Future<Output = AuditResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn log_event<'life0, 'async_trait>(
&'life0 self,
event: AuditEvent,
) -> Pin<Box<dyn Future<Output = AuditResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Log an audit event to the file.
Source§fn query_events<'life0, 'async_trait>(
&'life0 self,
filters: AuditQueryFilters,
) -> Pin<Box<dyn Future<Output = AuditResult<Vec<AuditEvent>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn query_events<'life0, 'async_trait>(
&'life0 self,
filters: AuditQueryFilters,
) -> Pin<Box<dyn Future<Output = AuditResult<Vec<AuditEvent>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Query audit events from the file.
Reads all events from the file and applies filters in memory.
Auto Trait Implementations§
impl Freeze for FileAuditBackend
impl !RefUnwindSafe for FileAuditBackend
impl Send for FileAuditBackend
impl Sync for FileAuditBackend
impl Unpin for FileAuditBackend
impl UnsafeUnpin for FileAuditBackend
impl !UnwindSafe for FileAuditBackend
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