Trait Db

Source
pub trait Db: Sized {
    // Required methods
    fn init(location: Config) -> DbResult<Self>;
    fn compact_log(&mut self) -> DbResult<()>;
    fn get_logger(&self) -> &Logger;

    // Provided methods
    fn config(&self) -> DbResult<Config> { ... }
    fn incomplete_write(&self) -> DbResult<bool> { ... }
    fn begin_transaction(&mut self) -> DbResult<TxHandle> { ... }
}

Required Methods§

Source

fn init(location: Config) -> DbResult<Self>

Source

fn compact_log(&mut self) -> DbResult<()>

Source

fn get_logger(&self) -> &Logger

Provided Methods§

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§