Trait fuel_core::state::TransactableStorage

source ·
pub trait TransactableStorage<Height>: IterableStore + Debug + Send + Sync {
    // Required method
    fn commit_changes(
        &self,
        height: Option<Height>,
        changes: Changes,
    ) -> StorageResult<()>;
}

Required Methods§

source

fn commit_changes( &self, height: Option<Height>, changes: Changes, ) -> StorageResult<()>

Commits the changes into the storage.

Implementors§

source§

impl<Description> TransactableStorage<<Description as DatabaseDescription>::Height> for MemoryStore<Description>
where Description: DatabaseDescription,

source§

impl<Description> TransactableStorage<<Description as DatabaseDescription>::Height> for RocksDb<Description>
where Description: DatabaseDescription,