Persist

Trait Persist 

Source
pub trait Persist:
    Ledger
    + ConsensusStorage
    + Mempool
    + Metadata
    + Debug {
    // Required methods
    fn clear_database(&mut self) -> Result<()>;
    fn commit(self) -> Result<()>;
    fn rollback(self) -> Result<()>;
}

Required Methods§

Source

fn clear_database(&mut self) -> Result<()>

Source

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

Source

fn rollback(self) -> Result<()>

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<DB: DBAccess> Persist for DBTransaction<'_, DB>