pub trait ConfigurableDatabase: Database + Sized {
    type Config: Debug;

    // Required method
    fn from_config(config: &Self::Config) -> Result<Self, Error>;
}
Expand description

Trait for Database types that can be created given a configuration

Required Associated Types§

source

type Config: Debug

Type that contains the configuration

Required Methods§

source

fn from_config(config: &Self::Config) -> Result<Self, Error>

Create a new instance given a configuration

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl ConfigurableDatabase for Tree

Implementors§