pub trait Transactional {
type Storage: ?Sized;
// Required method
fn transaction(&self) -> StorageTransaction<Self::Storage>;
}
Expand description
The types is transactional and may create StorageTransaction
.
Required Associated Types§
Required Methods§
sourcefn transaction(&self) -> StorageTransaction<Self::Storage>
fn transaction(&self) -> StorageTransaction<Self::Storage>
Creates and returns the storage transaction.