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
sourceimpl Blockchain for ElectrumBlockchain
impl Blockchain for ElectrumBlockchain
sourcefn get_capabilities(&self) -> HashSet<Capability>
fn get_capabilities(&self) -> HashSet<Capability>
Return the set of Capability
supported by this backend
sourceimpl ConfigurableBlockchain for ElectrumBlockchain
impl ConfigurableBlockchain for ElectrumBlockchain
type Config = ElectrumBlockchainConfig
type Config = ElectrumBlockchainConfig
Type that contains the configuration
sourcefn from_config(config: &Self::Config) -> Result<Self, Error>
fn from_config(config: &Self::Config) -> Result<Self, Error>
Create a new instance given a configuration
sourceimpl From<Client> for ElectrumBlockchain
impl From<Client> for ElectrumBlockchain
sourceimpl From<ElectrumBlockchain> for AnyBlockchain
impl From<ElectrumBlockchain> for AnyBlockchain
sourcefn from(inner: ElectrumBlockchain) -> Self
fn from(inner: ElectrumBlockchain) -> Self
Converts to this type from the input type.
sourceimpl GetHeight for ElectrumBlockchain
impl GetHeight for ElectrumBlockchain
sourcefn get_height(&self) -> Result<u32, Error>
fn get_height(&self) -> Result<u32, Error>
Return the current height
sourceimpl GetTx for ElectrumBlockchain
impl GetTx for ElectrumBlockchain
sourceimpl WalletSync for ElectrumBlockchain
impl WalletSync for ElectrumBlockchain
sourcefn wallet_setup<D: BatchDatabase>(
&self,
database: &mut D,
_progress_update: Box<dyn Progress>
) -> Result<(), Error>
fn wallet_setup<D: BatchDatabase>(
&self,
database: &mut D,
_progress_update: Box<dyn Progress>
) -> Result<(), Error>
Setup the backend and populate the internal database for the first time Read more
sourcefn wallet_sync<D: BatchDatabase>(
&self,
database: &mut D,
progress_update: Box<dyn Progress>
) -> Result<(), Error>
fn wallet_sync<D: BatchDatabase>(
&self,
database: &mut D,
progress_update: Box<dyn Progress>
) -> Result<(), Error>
If not overridden, it defaults to calling Self::wallet_setup
internally. Read more
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more