pub trait StorageSettingsCache: Send {
// Required methods
fn cached_storage_settings(&self) -> StorageSettings;
fn set_storage_settings_cache(&self, settings: StorageSettings);
}Available on crate feature
db-api only.Expand description
Trait for caching storage settings on a provider factory.
Required Methods§
Sourcefn cached_storage_settings(&self) -> StorageSettings
fn cached_storage_settings(&self) -> StorageSettings
Gets the cached storage settings.
Sourcefn set_storage_settings_cache(&self, settings: StorageSettings)
fn set_storage_settings_cache(&self, settings: StorageSettings)
Sets the storage settings of this ProviderFactory.
IMPORTANT: It does not save settings in storage, that should be done by
MetadataWriter::write_storage_settings
Implementors§
impl<ChainSpec, N> StorageSettingsCache for NoopProvider<ChainSpec, N>
impl<N: NodeTypesWithDB> StorageSettingsCache for ProviderFactory<N>
impl<T: NodePrimitives, ChainSpec: Send + Sync> StorageSettingsCache for MockEthProvider<T, ChainSpec>
Available on crate features
test-utils only.