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

pub trait ConfigurableDatabase: Database + Sized {
    type Config: Debug;
    pub 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

pub 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

Loading content...

Implementors

impl ConfigurableDatabase for AnyDatabase[src]

type Config = AnyDatabaseConfig

impl ConfigurableDatabase for MemoryDatabase[src]

type Config = ()

Loading content...