Trait bdk::blockchain::ConfigurableBlockchain[][src]

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

Trait for Blockchain 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...

Implementors

impl ConfigurableBlockchain for AnyBlockchain[src]

type Config = AnyBlockchainConfig

impl ConfigurableBlockchain for CompactFiltersBlockchain[src]

This is supported on crate feature compact_filters only.

impl ConfigurableBlockchain for ElectrumBlockchain[src]

This is supported on crate feature electrum only.

impl ConfigurableBlockchain for EsploraBlockchain[src]

This is supported on crate feature esplora only.
Loading content...