pub trait ValTransaction<TXN>: InMemValTransaction {
// Required method
async fn apply_to_txn(&self, txn: &mut TXN) -> MetadataModelResult<()>;
}
Expand description
Trait that wraps a local memory value and applies the change to the local memory value on
commit
or leaves the local memory value untouched on abort
.
Required Methods§
sourceasync fn apply_to_txn(&self, txn: &mut TXN) -> MetadataModelResult<()>
async fn apply_to_txn(&self, txn: &mut TXN) -> MetadataModelResult<()>
Apply the change (upsert or delete) to txn
Object Safety§
This trait is not object safe.