Trait fuel_core_storage::transactional::Transaction
source · pub trait Transaction<Storage: ?Sized>: AsRef<Storage> + AsMut<Storage> + Send + Sync {
// Required method
fn commit(&mut self) -> StorageResult<()>;
}
Expand description
The type is storage transaction and holds uncommitted state.
Required Methods§
sourcefn commit(&mut self) -> StorageResult<()>
fn commit(&mut self) -> StorageResult<()>
Commits the pending state changes into the storage.