pub struct MockChainProvider { /* private fields */ }Expand description
A ChainProvider mock that replays contracts (matched on method + params) for on-chain reads.
Implementations§
Trait Implementations§
Source§impl ChainProvider for MockChainProvider
impl ChainProvider for MockChainProvider
Source§fn call<'life0, 'life1, 'async_trait>(
&'life0 self,
_chain: Chain,
method: &'life1 str,
params: String,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn call<'life0, 'life1, 'async_trait>(
&'life0 self,
_chain: Chain,
method: &'life1 str,
params: String,
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Perform a raw JSON-RPC call and return the raw response body.
Auto Trait Implementations§
impl !Freeze for MockChainProvider
impl RefUnwindSafe for MockChainProvider
impl Send for MockChainProvider
impl Sync for MockChainProvider
impl Unpin for MockChainProvider
impl UnsafeUnpin for MockChainProvider
impl UnwindSafe for MockChainProvider
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