pub enum AuditEvent {
SessionStart {
timestamp: String,
args: Vec<String>,
version: String,
},
PageWrite {
timestamp: String,
file: String,
page_number: u64,
operation: String,
old_checksum: Option<u32>,
new_checksum: Option<u32>,
},
FileWrite {
timestamp: String,
file: String,
operation: String,
pages_written: u64,
},
BackupCreated {
timestamp: String,
source: String,
backup_path: String,
},
SessionEnd {
timestamp: String,
duration_ms: u64,
pages_written: u64,
files_written: u64,
},
}Expand description
A single audit log event, serialized as tagged NDJSON.
Variants§
SessionStart
Emitted once at the start of a CLI invocation.
PageWrite
Emitted when a single page is written (repair, transplant, corrupt).
Fields
FileWrite
Emitted when a whole file is written (defrag).
BackupCreated
Emitted when a backup file is created.
SessionEnd
Emitted once at the end of a CLI invocation.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuditEvent
impl RefUnwindSafe for AuditEvent
impl Send for AuditEvent
impl Sync for AuditEvent
impl Unpin for AuditEvent
impl UnsafeUnpin for AuditEvent
impl UnwindSafe for AuditEvent
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more