Trait bdk::blockchain::ConfigurableBlockchain
source · 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§
Required Methods§
sourcefn from_config(config: &Self::Config) -> Result<Self, Error>
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
impl ConfigurableBlockchain for AnyBlockchain
type Config = AnyBlockchainConfig
source§impl ConfigurableBlockchain for CompactFiltersBlockchain
Available on crate feature compact_filters
only.
impl ConfigurableBlockchain for CompactFiltersBlockchain
Available on crate feature
compact_filters
only.source§impl ConfigurableBlockchain for ElectrumBlockchain
Available on crate feature electrum
only.
impl ConfigurableBlockchain for ElectrumBlockchain
Available on crate feature
electrum
only.type Config = ElectrumBlockchainConfig
source§impl ConfigurableBlockchain for EsploraBlockchain
Available on crate feature esplora
only.
impl ConfigurableBlockchain for EsploraBlockchain
Available on crate feature
esplora
only.type Config = EsploraBlockchainConfig
source§impl ConfigurableBlockchain for RpcBlockchain
Available on crate feature rpc
only.
impl ConfigurableBlockchain for RpcBlockchain
Available on crate feature
rpc
only.