Trait bdk::blockchain::ConfigurableBlockchain
source · [−]pub trait ConfigurableBlockchain: Blockchain + Sized {
type Config: Debug;
fn from_config(config: &Self::Config) -> Result<Self, Error>;
}
Expand description
Trait for Blockchain
types that can be created given a configuration
Associated Types
Required methods
fn from_config(config: &Self::Config) -> Result<Self, Error>
fn from_config(config: &Self::Config) -> Result<Self, Error>
Create a new instance given a configuration
Implementors
sourceimpl ConfigurableBlockchain for AnyBlockchain
impl ConfigurableBlockchain for AnyBlockchain
type Config = AnyBlockchainConfig
sourceimpl ConfigurableBlockchain for CompactFiltersBlockchain
This is supported on crate feature compact_filters
only.
impl ConfigurableBlockchain for CompactFiltersBlockchain
This is supported on crate feature
compact_filters
only.sourceimpl ConfigurableBlockchain for ElectrumBlockchain
This is supported on crate feature electrum
only.
impl ConfigurableBlockchain for ElectrumBlockchain
This is supported on crate feature
electrum
only.type Config = ElectrumBlockchainConfig
sourceimpl ConfigurableBlockchain for EsploraBlockchain
This is supported on crate feature esplora
only.
impl ConfigurableBlockchain for EsploraBlockchain
This is supported on crate feature
esplora
only.type Config = EsploraBlockchainConfig
sourceimpl ConfigurableBlockchain for RpcBlockchain
This is supported on crate feature rpc
only.
impl ConfigurableBlockchain for RpcBlockchain
This is supported on crate feature
rpc
only.