fuel_core_interfaces::db

Trait Transactional

Source
pub trait Transactional {
    // Required methods
    fn commit(self) -> Result<(), Error>;
    fn commit_box(self: Box<Self>) -> Result<(), Error>;
}

Required Methods§

Source

fn commit(self) -> Result<(), Error>

Commits the pending state changes into the database.

Source

fn commit_box(self: Box<Self>) -> Result<(), Error>

The same as commit but for case if the value is boxed.

Implementors§