Struct testutils::TestClient[][src]

pub struct TestClient { /* fields omitted */ }

Implementations

impl TestClient[src]

pub fn new() -> Self[src]

pub fn receive(&mut self, meta_tx: TestIncomingTx) -> Txid[src]

pub fn bump_fee(&mut self, txid: &Txid) -> Txid[src]

pub fn generate_manually(&mut self, txs: Vec<Transaction>) -> String[src]

pub fn generate(&mut self, num_blocks: u64, address: Option<Address>)[src]

pub fn invalidate(&mut self, num_blocks: u64)[src]

pub fn reorg(&mut self, num_blocks: u64)[src]

pub fn get_node_address(&self, address_type: Option<AddressType>) -> Address[src]

Methods from Deref<Target = RpcClient>

pub fn get_jsonrpc_client(&self) -> &Client[src]

Get the underlying JSONRPC client.

Trait Implementations

impl Deref for TestClient[src]

type Target = RpcClient

The resulting type after dereferencing.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Typeable for T where
    T: Any