StorageSettingsCache

Trait StorageSettingsCache 

pub trait StorageSettingsCache: Send + Sync {
    // Required methods
    fn cached_storage_settings(&self) -> StorageSettings;
    fn set_storage_settings_cache(&self, settings: StorageSettings);
}
Expand description

Trait for caching storage settings on a provider factory.

Required Methods§

fn cached_storage_settings(&self) -> StorageSettings

Gets the cached storage settings.

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§

Source§

impl<N: NodeTypesWithDB> StorageSettingsCache for ProviderFactory<N>

Source§

impl<TX: Send + Sync, N: NodeTypes> StorageSettingsCache for DatabaseProvider<TX, N>