pub struct MiniRpcClient { /* private fields */ }Implementations§
Source§impl MiniRpcClient
impl MiniRpcClient
pub fn new(url: Uri, auth: Auth) -> MiniRpcClient
pub async fn get_raw_transaction( &self, txid: &String, block_hash: Option<&BlockHash>, ) -> Result<Transaction, RpcError>
pub async fn get_raw_mempool(&self) -> Result<Vec<String>, RpcError>
pub async fn submit_block(&self, block_hex: String) -> Result<(), RpcError>
Trait Implementations§
Source§impl Clone for MiniRpcClient
impl Clone for MiniRpcClient
Source§fn clone(&self) -> MiniRpcClient
fn clone(&self) -> MiniRpcClient
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 MiniRpcClient
impl !RefUnwindSafe for MiniRpcClient
impl Send for MiniRpcClient
impl Sync for MiniRpcClient
impl Unpin for MiniRpcClient
impl !UnwindSafe for MiniRpcClient
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