[−][src]Struct cashweb_bitcoin_client::BitcoinClient
Basic bitcoin client
Methods
impl BitcoinClient<HttpConnector>
[src]
impl<C> BitcoinClient<C> where
C: Connect + Clone + Send + Sync + 'static,
[src]
C: Connect + Clone + Send + Sync + 'static,
pub async fn get_new_addr<'_>(&'_ self) -> Result<String, NodeError>
[src]
pub async fn send_tx<'_, '_>(
&'_ self,
raw_tx: &'_ [u8]
) -> Result<String, NodeError>
[src]
&'_ self,
raw_tx: &'_ [u8]
) -> Result<String, NodeError>
pub async fn get_raw_transaction<'_, '_>(
&'_ self,
tx_id: &'_ [u8]
) -> Result<Vec<u8>, NodeError>
[src]
&'_ self,
tx_id: &'_ [u8]
) -> Result<Vec<u8>, NodeError>
Methods from Deref<Target = HttpClient<C>>
pub fn next_nonce(&self) -> usize
[src]
Trait Implementations
impl<C: Clone> Clone for BitcoinClient<C>
[src]
fn clone(&self) -> BitcoinClient<C>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<C: Debug> Debug for BitcoinClient<C>
[src]
impl<C> Deref for BitcoinClient<C>
[src]
type Target = HttpClient<C>
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
Auto Trait Implementations
impl<C> !RefUnwindSafe for BitcoinClient<C>
impl<C> Send for BitcoinClient<C> where
C: Send,
C: Send,
impl<C> Sync for BitcoinClient<C> where
C: Sync,
C: Sync,
impl<C> Unpin for BitcoinClient<C> where
C: Unpin,
C: Unpin,
impl<C> !UnwindSafe for BitcoinClient<C>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,