Trait tendermint_rpc::MockRequestMatcher[][src]

pub trait MockRequestMatcher: Send + Sync {
    fn response_for<R>(&self, request: R) -> Option<Result<R::Response>>
    where
        R: Request
; }

A trait required by the MockClient that allows for different approaches to mocking responses for specific requests.

Required methods

fn response_for<R>(&self, request: R) -> Option<Result<R::Response>> where
    R: Request
[src]

Provide the corresponding response for the given request (if any).

Loading content...

Implementors

impl MockRequestMatcher for MockRequestMethodMatcher[src]

Loading content...