Trait bdk::database::ConfigurableDatabase[][src]

pub trait ConfigurableDatabase: Database + Sized {
    type Config: Debug;
    fn from_config(config: &Self::Config) -> Result<Self, Error>;
}

Trait for Database types that can be created given a configuration

Associated Types

type Config: Debug[src]

Type that contains the configuration

Loading content...

Required methods

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

Create a new instance given a configuration

Loading content...

Implementations on Foreign Types

impl ConfigurableDatabase for Tree[src]

type Config = SledDbConfiguration

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

Loading content...

Implementors

impl ConfigurableDatabase for AnyDatabase[src]

type Config = AnyDatabaseConfig

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

impl ConfigurableDatabase for MemoryDatabase[src]

type Config = ()

fn from_config(_config: &Self::Config) -> Result<Self, Error>[src]

Loading content...