alloy_provider

Trait Caller

source
pub trait Caller<T, Params, Resp>: Send + Sync
where T: Transport + Clone, Params: RpcParam, Resp: RpcReturn,
{ // Required method fn call( &self, method: Cow<'static, str>, params: Params, ) -> TransportResult<ProviderCall<T, Value, Resp>>; }
Expand description

Trait that helpes convert EthCall into a ProviderCall.

Required Methods§

source

fn call( &self, method: Cow<'static, str>, params: Params, ) -> TransportResult<ProviderCall<T, Value, Resp>>

Method that needs to be implemented to convert to a ProviderCall.

This method handles serialization of the params and sends the request to relevant data source and returns a ProviderCall.

Implementations on Foreign Types§

source§

impl<T, Params, Resp> Caller<T, Params, Resp> for WeakClient<T>
where T: Transport + Clone, Params: RpcParam, Resp: RpcReturn,

source§

fn call( &self, method: Cow<'static, str>, params: Params, ) -> TransportResult<ProviderCall<T, Value, Resp>>

Implementors§