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

    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

Type that contains the configuration

Required Methods

Create a new instance given a configuration

Implementations on Foreign Types

Implementors