pub trait PersistentDataStoreFactory {
// Required method
fn create_persistent_data_store(
&self,
) -> Result<Box<dyn PersistentDataStore>, Error>;
}
Expand description
PersistentDataStoreFactory is an interface for a factory that creates some implementation of a PersistentDataStore.
This interface is implemented by database integrations. Usage is described in PersistentDataStore.
Required Methods§
sourcefn create_persistent_data_store(
&self,
) -> Result<Box<dyn PersistentDataStore>, Error>
fn create_persistent_data_store( &self, ) -> Result<Box<dyn PersistentDataStore>, Error>
This is called by the SDK to create the implementation instance.