pub struct JsonRpcClient { /* private fields */ }Implementations§
Trait Implementations§
Source§impl BlockchainClient for JsonRpcClient
impl BlockchainClient for JsonRpcClient
fn get_blockchain_info<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BlockchainInfo>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_raw_transaction_with_block<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
txid: &'life1 str,
verbose: bool,
blockhash: Option<&'life2 str>,
) -> Pin<Box<dyn Future<Output = Result<RawTransaction>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn list_unspent<'life0, 'life1, 'async_trait>(
&'life0 self,
min_conf: Option<u32>,
max_conf: Option<u32>,
addresses: Option<&'life1 [String]>,
) -> Pin<Box<dyn Future<Output = Result<Vec<Utxo>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_transactions<'life0, 'life1, 'async_trait>(
&'life0 self,
label: Option<&'life1 str>,
count: Option<usize>,
skip: Option<usize>,
include_watchonly: bool,
) -> Pin<Box<dyn Future<Output = Result<Vec<TransactionListItem>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_received_by_address<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 str,
min_conf: Option<u32>,
) -> Pin<Box<dyn Future<Output = Result<f64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn list_received_by_address<'life0, 'async_trait>(
&'life0 self,
min_conf: Option<u32>,
include_empty: bool,
include_watchonly: bool,
) -> Pin<Box<dyn Future<Output = Result<Vec<ReceivedByAddress>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn is_address_watched<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn import_address<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
address: &'life1 str,
label: Option<&'life2 str>,
rescan: bool,
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn validate_address<'life0, 'life1, 'async_trait>(
&'life0 self,
address: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<AddressValidation>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
txid: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn get_block_count<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_best_block_hash<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_raw_transaction<'life0, 'life1, 'async_trait>(
&'life0 self,
txid: &'life1 str,
verbose: bool,
) -> Pin<Box<dyn Future<Output = Result<RawTransaction>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Source§impl Clone for JsonRpcClient
impl Clone for JsonRpcClient
Source§fn clone(&self) -> JsonRpcClient
fn clone(&self) -> JsonRpcClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for JsonRpcClient
impl !RefUnwindSafe for JsonRpcClient
impl Send for JsonRpcClient
impl Sync for JsonRpcClient
impl Unpin for JsonRpcClient
impl UnsafeUnpin for JsonRpcClient
impl !UnwindSafe for JsonRpcClient
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