Struct web3::Erased
[−]
[src]
pub struct Erased(_);
Transport with erased output type.
Trait Implementations
impl Transport for Erased
[src]
type Out = Result<Value>
The type of future this transport returns when a call is made.
fn prepare(&self, method: &str, params: Vec<Value>) -> (RequestId, Call)
Prepare serializable RPC call for given method with parameters.
fn send(&self, id: RequestId, request: Call) -> Self::Out
Execute prepared RPC call.
fn execute(&self, method: &str, params: Vec<Value>) -> Self::Out
Execute remote method with given parameters.
fn erase(self) -> Erased where
Self: Sized + 'static,
Self::Out: Send + 'static,
Self: Sized + 'static,
Self::Out: Send + 'static,
Erase the type of the transport by boxing it and boxing all produced futures. Read more