Struct bdk::blockchain::electrum::ElectrumBlockchain
source · pub struct ElectrumBlockchain { /* private fields */ }
Available on crate feature
electrum
only.Expand description
Wrapper over an Electrum Client that implements the required blockchain traits
Example
See the blockchain::electrum
module for a usage example.
Trait Implementations§
source§impl Blockchain for ElectrumBlockchain
impl Blockchain for ElectrumBlockchain
source§fn get_capabilities(&self) -> HashSet<Capability>
fn get_capabilities(&self) -> HashSet<Capability>
Return the set of
Capability
supported by this backendsource§impl ConfigurableBlockchain for ElectrumBlockchain
impl ConfigurableBlockchain for ElectrumBlockchain
§type Config = ElectrumBlockchainConfig
type Config = ElectrumBlockchainConfig
Type that contains the configuration
source§impl Deref for ElectrumBlockchain
impl Deref for ElectrumBlockchain
source§impl From<Client> for ElectrumBlockchain
impl From<Client> for ElectrumBlockchain
source§impl From<ElectrumBlockchain> for AnyBlockchain
impl From<ElectrumBlockchain> for AnyBlockchain
source§fn from(inner: ElectrumBlockchain) -> Self
fn from(inner: ElectrumBlockchain) -> Self
Converts to this type from the input type.
source§impl GetBlockHash for ElectrumBlockchain
impl GetBlockHash for ElectrumBlockchain
source§impl GetHeight for ElectrumBlockchain
impl GetHeight for ElectrumBlockchain
source§impl GetTx for ElectrumBlockchain
impl GetTx for ElectrumBlockchain
source§impl WalletSync for ElectrumBlockchain
impl WalletSync for ElectrumBlockchain
source§fn wallet_setup<D: BatchDatabase>(
&self,
database: &RefCell<D>,
_progress_update: Box<dyn Progress>
) -> Result<(), Error>
fn wallet_setup<D: BatchDatabase>( &self, database: &RefCell<D>, _progress_update: Box<dyn Progress> ) -> Result<(), Error>
Setup the backend and populate the internal database for the first time Read more
source§fn wallet_sync<D: BatchDatabase>(
&self,
database: &RefCell<D>,
progress_update: Box<dyn Progress>
) -> Result<(), Error>
fn wallet_sync<D: BatchDatabase>( &self, database: &RefCell<D>, progress_update: Box<dyn Progress> ) -> Result<(), Error>
If not overridden, it defaults to calling
Self::wallet_setup
internally. Read moreimpl StatelessBlockchain for ElectrumBlockchain
Auto Trait Implementations§
impl RefUnwindSafe for ElectrumBlockchain
impl Send for ElectrumBlockchain
impl Sync for ElectrumBlockchain
impl Unpin for ElectrumBlockchain
impl UnwindSafe for ElectrumBlockchain
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more