pub trait JsonRpcClientWrapper: Send + Sync + Debug {
    // Required method
    fn request<'life0, 'life1, 'async_trait>(
        &'life0 self,
        method: &'life1 str,
        params: QuorumParams
    ) -> Pin<Box<dyn Future<Output = Result<Value, ProviderError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Wrapper trait for crate::JsonRpcClient that erases generics and is object-safe. This trait is not intended for outside implementation

Required Methods§

source

fn request<'life0, 'life1, 'async_trait>( &'life0 self, method: &'life1 str, params: QuorumParams ) -> Pin<Box<dyn Future<Output = Result<Value, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Make a request, as crate::JsonRpcClient

Trait Implementations§

source§

impl JsonRpcClientWrapper for Box<dyn JsonRpcClientWrapper>

source§

fn request<'life0, 'life1, 'async_trait>( &'life0 self, method: &'life1 str, params: QuorumParams ) -> Pin<Box<dyn Future<Output = Result<Value, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Make a request, as crate::JsonRpcClient

Implementations on Foreign Types§

source§

impl JsonRpcClientWrapper for Box<dyn JsonRpcClientWrapper>

source§

fn request<'life0, 'life1, 'async_trait>( &'life0 self, method: &'life1 str, params: QuorumParams ) -> Pin<Box<dyn Future<Output = Result<Value, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source§

impl JsonRpcClientWrapper for Box<dyn PubsubClientWrapper>

source§

fn request<'life0, 'life1, 'async_trait>( &'life0 self, method: &'life1 str, params: QuorumParams ) -> Pin<Box<dyn Future<Output = Result<Value, ProviderError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§