[−][src]Trait async_jsonrpc_client::Transport
Transport implementation.
Required methods
fn prepare<M: Into<String>>(
&self,
method: M,
params: Params
) -> (RequestId, Call)
&self,
method: M,
params: Params
) -> (RequestId, Call)
Prepare serializable RPC call for given method with parameters.
#[must_use]fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
id: RequestId,
request: &'life1 Request
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
&'life0 self,
id: RequestId,
request: &'life1 Request
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Execute prepared RPC call.
Provided methods
#[must_use]fn send<'life0, 'async_trait, M, T>(
&'life0 self,
method: M,
params: Params
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>> where
M: Into<String> + Send,
T: DeserializeOwned,
M: 'async_trait,
T: 'async_trait,
'life0: 'async_trait,
Self: Sync + 'async_trait,
&'life0 self,
method: M,
params: Params
) -> Pin<Box<dyn Future<Output = Result<T>> + Send + 'async_trait>> where
M: Into<String> + Send,
T: DeserializeOwned,
M: 'async_trait,
T: 'async_trait,
'life0: 'async_trait,
Self: Sync + 'async_trait,
Send remote method with given parameters.
Implementors
impl Transport for HttpTransport
[src]
fn prepare<M: Into<String>>(
&self,
method: M,
params: Params
) -> (RequestId, Call)
[src]
&self,
method: M,
params: Params
) -> (RequestId, Call)
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
_id: RequestId,
request: &'life1 Request
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
_id: RequestId,
request: &'life1 Request
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Transport for WebSocketTransport
[src]
fn prepare<M: Into<String>>(
&self,
method: M,
params: Params
) -> (RequestId, Call)
[src]
&self,
method: M,
params: Params
) -> (RequestId, Call)
fn execute<'life0, 'life1, 'async_trait>(
&'life0 self,
id: RequestId,
request: &'life1 Request
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
id: RequestId,
request: &'life1 Request
) -> Pin<Box<dyn Future<Output = Result<Response>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,