Skip to main content

StorageSettingsCache

Trait StorageSettingsCache 

Source
pub trait StorageSettingsCache: Send {
    // 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§

Source

fn cached_storage_settings(&self) -> StorageSettings

Gets the cached storage settings.

Source

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<ChainSpec, N> StorageSettingsCache for NoopProvider<ChainSpec, N>
where ChainSpec: Send + Sync, N: Send + Sync,

Available on crate feature db-api only.
Source§

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

Source§

impl<T, ChainSpec> StorageSettingsCache for MockEthProvider<T, ChainSpec>
where T: NodePrimitives, ChainSpec: Send + Sync,

Source§

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