pub trait TransactableStorage<Height>:
IterableStore
+ Debug
+ Send
+ Sync {
// Required methods
fn commit_changes(
&self,
height: Option<Height>,
changes: StorageChanges,
) -> StorageResult<()>;
fn view_at_height(
&self,
height: &Height,
) -> StorageResult<KeyValueView<Self::Column, Height>>;
fn latest_view(
&self,
) -> StorageResult<IterableKeyValueView<Self::Column, Height>>;
fn rollback_block_to(&self, height: &Height) -> StorageResult<()>;
// Provided method
fn shutdown(&self) { ... }
}Required Methods§
Sourcefn commit_changes(
&self,
height: Option<Height>,
changes: StorageChanges,
) -> StorageResult<()>
fn commit_changes( &self, height: Option<Height>, changes: StorageChanges, ) -> StorageResult<()>
Commits the changes into the storage.