pub trait ConfigurableStorage: Storage {
// Required method
fn open_with_config<'async_trait, P>(
path: P,
config: StorageConfig,
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
where P: 'async_trait + AsRef<Path> + ConditionalSend,
Self: 'async_trait;
}Expand description
Storage that can be customized via StorageConfig.
Configurations are generalized across storage providers, and may have differing underlying semantics.
Required Methods§
fn open_with_config<'async_trait, P>( path: P, config: StorageConfig, ) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.