Struct ethers_providers::MockProvider [−][src]
pub struct MockProvider { /* fields omitted */ }
Expand description
Mock transport used in test environments.
Implementations
Checks that the provided request was submitted by the client
Trait Implementations
fn request<'life0, 'life1, 'async_trait, T: Serialize + Send + Sync, R: DeserializeOwned>(
&'life0 self,
method: &'life1 str,
input: T
) -> Pin<Box<dyn Future<Output = Result<R, MockError>> + Send + 'async_trait>> where
T: 'async_trait,
R: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn request<'life0, 'life1, 'async_trait, T: Serialize + Send + Sync, R: DeserializeOwned>(
&'life0 self,
method: &'life1 str,
input: T
) -> Pin<Box<dyn Future<Output = Result<R, MockError>> + Send + 'async_trait>> where
T: 'async_trait,
R: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Pushes the (method, input)
to the back of the requests
queue,
pops the responses from the back of the responses
queue
Auto Trait Implementations
impl RefUnwindSafe for MockProvider
impl Send for MockProvider
impl Sync for MockProvider
impl Unpin for MockProvider
impl UnwindSafe for MockProvider
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more