Trait fuel_core_importer::ports::Transactional
source · pub trait Transactional {
type Transaction<'a>: DatabaseTransaction
where Self: 'a;
// Required method
fn storage_transaction(&mut self, changes: Changes) -> Self::Transaction<'_>;
}
Expand description
The trait indicates that the type supports storage transactions.
Required Associated Types§
sourcetype Transaction<'a>: DatabaseTransaction
where
Self: 'a
type Transaction<'a>: DatabaseTransaction where Self: 'a
The type of the storage transaction;
Required Methods§
sourcefn storage_transaction(&mut self, changes: Changes) -> Self::Transaction<'_>
fn storage_transaction(&mut self, changes: Changes) -> Self::Transaction<'_>
Returns the storage transaction based on the Changes
.
Object Safety§
This trait is not object safe.