pub trait ProfileStore: Send + Sync {
// Required methods
fn read(&self) -> Result<ProfileSnapshot, ProfileStoreError>;
fn lock_mutation(
&self,
) -> Result<Box<dyn ProfileMutation + Send + '_>, ProfileStoreError>;
fn credential_namespace(&self) -> Result<String, ProfileStoreError>;
}Required Methods§
fn read(&self) -> Result<ProfileSnapshot, ProfileStoreError>
fn lock_mutation( &self, ) -> Result<Box<dyn ProfileMutation + Send + '_>, ProfileStoreError>
fn credential_namespace(&self) -> Result<String, ProfileStoreError>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".