pub struct FileAuditLogPersistence { /* private fields */ }Expand description
Two-slot, versioned and checksummed file snapshot backend.
Each commit fully writes and synchronizes one slot. 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
Source§fn clone(&self) -> FileAuditLogPersistence
fn clone(&self) -> FileAuditLogPersistence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto 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