Enum bdk::blockchain::any::AnyBlockchain [−][src]
pub enum AnyBlockchain { Electrum(ElectrumBlockchain), Esplora(EsploraBlockchain), CompactFilters(CompactFiltersBlockchain), }
Expand description
Type that can contain any of the Blockchain
types defined by the library
It allows switching backend at runtime
See this module’s documentation for a usage example.
Variants
Electrum(ElectrumBlockchain)
electrum
only.Electrum client
Esplora(EsploraBlockchain)
esplora
only.Esplora client
CompactFilters(CompactFiltersBlockchain)
compact_filters
only.Compact filters client
Trait Implementations
Return the set of Capability
supported by this backend
Setup the backend and populate the internal database for the first time Read more
Populate the internal database with transactions and UTXOs Read more
Fetch a transaction from the blockchain given its txid
Return the current height
type Config = AnyBlockchainConfig
type Config = AnyBlockchainConfig
Type that contains the configuration
Create a new instance given a configuration
Performs the conversion.
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for AnyBlockchain
impl Send for AnyBlockchain
impl Sync for AnyBlockchain
impl Unpin for AnyBlockchain
impl !UnwindSafe for AnyBlockchain
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V