Trait BlockStoreTransaction

Source
pub trait BlockStoreTransaction {
    // Required methods
    fn commit(self) -> Result<(), BlockStoreError>;
    fn rollback(self);
}
Expand description

Block store transaction.

Required Methods§

Source

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

Commit changes to the block store.

Source

fn rollback(self)

Roll back any temporary changes to the block store.

Implementors§