Struct bdk_debug::blockchain::rpc::RpcBlockchain
source · pub struct RpcBlockchain { /* private fields */ }Available on crate feature
rpc only.Expand description
The main struct for RPC backend implementing the crate::blockchain::Blockchain trait
Methods from Deref<Target = Client>§
sourcepub fn get_jsonrpc_client(&self) -> &Client
pub fn get_jsonrpc_client(&self) -> &Client
Get the underlying JSONRPC client.
Trait Implementations§
source§impl Blockchain for RpcBlockchain
impl Blockchain for RpcBlockchain
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 RpcBlockchain
impl ConfigurableBlockchain for RpcBlockchain
source§impl Debug for RpcBlockchain
impl Debug for RpcBlockchain
source§impl Deref for RpcBlockchain
impl Deref for RpcBlockchain
source§impl From<RpcBlockchain> for AnyBlockchain
impl From<RpcBlockchain> for AnyBlockchain
source§fn from(inner: RpcBlockchain) -> Self
fn from(inner: RpcBlockchain) -> Self
Converts to this type from the input type.
source§impl GetBlockHash for RpcBlockchain
impl GetBlockHash for RpcBlockchain
source§impl GetHeight for RpcBlockchain
impl GetHeight for RpcBlockchain
source§impl GetTx for RpcBlockchain
impl GetTx for RpcBlockchain
source§impl WalletSync for RpcBlockchain
impl WalletSync for RpcBlockchain
source§fn wallet_setup<D>(
&self,
db: &RefCell<D>,
prog: Box<dyn Progress>
) -> Result<(), Error>where
D: BatchDatabase,
fn wallet_setup<D>( &self, db: &RefCell<D>, prog: Box<dyn Progress> ) -> Result<(), Error>where D: BatchDatabase,
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for RpcBlockchain
impl Send for RpcBlockchain
impl Sync for RpcBlockchain
impl Unpin for RpcBlockchain
impl !UnwindSafe for RpcBlockchain
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