pub struct BitcoinClient { /* private fields */ }
Trait Implementations§
Source§impl BlockchainClient for BitcoinClient
impl BlockchainClient for BitcoinClient
type MetadataParams = ()
type Metadata = ()
fn create_config(network: &str) -> Result<BlockchainConfig>
fn new<'life0, 'async_trait>(
config: BlockchainConfig,
addr: &'life0 str,
) -> Pin<Box<dyn Future<Output = Result<Self>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn config(&self) -> &BlockchainConfig
fn genesis_block(&self) -> &BlockIdentifier
fn node_version<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn current_block<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<BlockIdentifier>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn balance<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_address: &'life1 Address,
_block: &'life2 BlockIdentifier,
) -> Pin<Box<dyn Future<Output = Result<u128>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn coins<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_address: &'life1 Address,
_block: &'life2 BlockIdentifier,
) -> Pin<Box<dyn Future<Output = Result<Vec<Coin>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn faucet<'life0, 'life1, 'async_trait>(
&'life0 self,
_address: &'life1 Address,
_value: u128,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn metadata<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_public_key: &'life1 PublicKey,
_options: &'life2 Self::MetadataParams,
) -> Pin<Box<dyn Future<Output = Result<Self::Metadata>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn submit<'life0, 'life1, 'async_trait>(
&'life0 self,
_transaction: &'life1 [u8],
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn block<'life0, 'life1, 'async_trait>(
&'life0 self,
_block: &'life1 PartialBlockIdentifier,
) -> Pin<Box<dyn Future<Output = Result<Block>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn block_transaction<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_block: &'life1 BlockIdentifier,
_tx: &'life2 TransactionIdentifier,
) -> Pin<Box<dyn Future<Output = Result<Transaction>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn call<'life0, 'life1, 'async_trait>(
&'life0 self,
_req: &'life1 CallRequest,
) -> Pin<Box<dyn Future<Output = Result<Value>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Auto Trait Implementations§
impl !Freeze for BitcoinClient
impl !RefUnwindSafe for BitcoinClient
impl Send for BitcoinClient
impl Sync for BitcoinClient
impl Unpin for BitcoinClient
impl !UnwindSafe for BitcoinClient
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