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)
This is supported on crate feature electrum only.

Electrum client

Tuple Fields of Electrum

0: ElectrumBlockchain
Esplora(EsploraBlockchain)
This is supported on crate feature esplora only.

Esplora client

Tuple Fields of Esplora

0: EsploraBlockchain
CompactFilters(CompactFiltersBlockchain)
This is supported on crate feature compact_filters only.

Compact filters client

Tuple Fields of CompactFilters

0: CompactFiltersBlockchain

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

Broadcast a transaction

Return the current height

Estimate the fee rate required to confirm a transaction in a given target of blocks

Type that contains the configuration

Create a new instance given a configuration

Performs the conversion.

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.