Trait bdk::blockchain::ConfigurableBlockchain [−][src]
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
type Config = AnyBlockchainConfig
impl 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.