pub struct FileAuditLogPersistence { /* private fields */ }Expand description
Two-slot, versioned and checksummed file snapshot backend.
Each commit fully writes and synchronizes one slot, and the first commit to
a slot also synchronizes its directory (on Unix; see
durable). This protects the previous valid slot from a
failed commit, but does not provide multi-process coordination or stronger
portable power-loss guarantees than sync_all.
Implementations§
Trait Implementations§
Source§impl AuditLogPersistence for FileAuditLogPersistence
impl AuditLogPersistence for FileAuditLogPersistence
Source§fn load(
&self,
expected_object: ObjectIdentifier,
) -> Result<Option<AuditLogSnapshot>, Error>
fn load( &self, expected_object: ObjectIdentifier, ) -> Result<Option<AuditLogSnapshot>, Error>
Load the newest valid compatible snapshot, or
None if neither slot exists.Source§impl Clone for FileAuditLogPersistence
impl Clone for FileAuditLogPersistence
Auto Trait Implementations§
impl Freeze for FileAuditLogPersistence
impl RefUnwindSafe for FileAuditLogPersistence
impl Send for FileAuditLogPersistence
impl Sync for FileAuditLogPersistence
impl Unpin for FileAuditLogPersistence
impl UnsafeUnpin for FileAuditLogPersistence
impl UnwindSafe for FileAuditLogPersistence
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