pub struct TestClient { /* private fields */ }
Implementations§
Source§impl TestClient
impl TestClient
pub fn new() -> Self
pub fn receive(&mut self, meta_tx: TestIncomingTx) -> Txid
pub fn bump_fee(&mut self, txid: &Txid) -> Txid
pub fn generate_manually(&mut self, txs: Vec<Transaction>) -> String
pub fn generate(&mut self, num_blocks: u64, address: Option<Address>)
pub fn invalidate(&mut self, num_blocks: u64)
pub fn reorg(&mut self, num_blocks: u64)
pub fn get_node_address(&self, address_type: Option<AddressType>) -> Address
Methods from Deref<Target = RpcClient>§
Sourcepub fn get_jsonrpc_client(&self) -> &Client
pub fn get_jsonrpc_client(&self) -> &Client
Get the underlying JSONRPC client.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for TestClient
impl !RefUnwindSafe for TestClient
impl Send for TestClient
impl Sync for TestClient
impl Unpin for TestClient
impl !UnwindSafe for TestClient
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