pub trait ConfigurableBlockchain: Blockchain + Sized {
    type Config: Debug;

    // Required method
    fn from_config(config: &Self::Config) -> Result<Self, Error>;
}
Expand description

Trait for Blockchain types that can be created given a configuration

Required Associated Types§

source

type Config: Debug

Type that contains the configuration

Required Methods§

source

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

Create a new instance given a configuration

Object Safety§

This trait is not object safe.

Implementors§

source§

impl ConfigurableBlockchain for AnyBlockchain

source§

impl ConfigurableBlockchain for CompactFiltersBlockchain

Available on crate feature compact_filters only.
source§

impl ConfigurableBlockchain for ElectrumBlockchain

Available on crate feature electrum only.
source§

impl ConfigurableBlockchain for EsploraBlockchain

Available on crate feature esplora only.
source§

impl ConfigurableBlockchain for RpcBlockchain

Available on crate feature rpc only.