pub trait AuditLogPersistence: Send + Sync {
// Required methods
fn load(
&self,
expected_object: ObjectIdentifier,
) -> Result<Option<AuditLogSnapshot>, Error>;
fn commit(&self, snapshot: &AuditLogSnapshot) -> Result<(), Error>;
}Expand description
Application-owned persistence port for one AuditLog object.
Required Methods§
Sourcefn 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.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".