Type Alias StateCacheDb
pub type StateCacheDb<'a> = CacheDB<StateProviderDatabase<StateProviderTraitObjWrapper<'a>>>;
Expand description
Helper alias type for the state’s CacheDB
Aliased Type§
pub struct StateCacheDb<'a> {
pub cache: Cache,
pub db: StateProviderDatabase<StateProviderTraitObjWrapper<'a>>,
}
Fields§
§cache: Cache
The cache that stores all state changes.
db: StateProviderDatabase<StateProviderTraitObjWrapper<'a>>
The underlying database (DatabaseRef) that is used to load data.
Note: This is read-only, data is never written to this database.
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 160 bytes