Trait fuel_core_relayer::ports::Transactional
source · pub trait Transactional {
type Transaction<'a>: DatabaseTransaction
where Self: 'a;
// Required methods
fn transaction(&mut self) -> Self::Transaction<'_>;
fn latest_da_height(&self) -> Option<DaBlockHeight>;
}
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 transaction(&mut self) -> Self::Transaction<'_>
fn transaction(&mut self) -> Self::Transaction<'_>
Returns the storage transaction.
sourcefn latest_da_height(&self) -> Option<DaBlockHeight>
fn latest_da_height(&self) -> Option<DaBlockHeight>
Returns the latest da block height.
Object Safety§
This trait is not object safe.