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

Associated Types

Type that contains the configuration

Required methods

Create a new instance given a configuration

Implementations on Foreign Types

Implementors