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§
fn clear_database(&mut self) -> Result<()>
fn commit(self) -> Result<()>
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.