fuel_core_storage::transactional

Trait WriteTransaction

Source
pub trait WriteTransaction {
    // Required method
    fn write_transaction(&mut self) -> StorageTransaction<&mut Self>;
}
Expand description

Creates a new instance of the storage write transaction.

Required Methods§

Source

fn write_transaction(&mut self) -> StorageTransaction<&mut Self>

Returns the write transaction that can commit the changes.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<S> WriteTransaction for S
where S: Modifiable,