pub trait StorageBackendFactory: Sync {
// Required methods
fn backend(&self) -> &'static str;
fn create(
&self,
storage_config: &StorageConfig,
backend_config: &StorageBackendConfig,
) -> Result<Arc<dyn StorageBackend>, StorageError>;
}Required Methods§
fn backend(&self) -> &'static str
fn create( &self, storage_config: &StorageConfig, backend_config: &StorageBackendConfig, ) -> Result<Arc<dyn StorageBackend>, StorageError>
Trait Implementations§
impl Collect for &'static dyn StorageBackendFactory
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".