Trait async_jsonrpc_client::Transport[][src]

pub trait Transport {
#[must_use]    fn request<'life0, 'async_trait, M>(
        &'life0 self,
        method: M,
        params: Option<Params>
    ) -> Pin<Box<dyn Future<Output = Result<Output, ClientError>> + Send + 'async_trait>>
    where
        M: Into<String> + Send,
        M: 'async_trait,
        'life0: 'async_trait,
        Self: 'async_trait
; }

A JSON-RPC 2.0 transport.

Required methods

#[must_use]fn request<'life0, 'async_trait, M>(
    &'life0 self,
    method: M,
    params: Option<Params>
) -> Pin<Box<dyn Future<Output = Result<Output, ClientError>> + Send + 'async_trait>> where
    M: Into<String> + Send,
    M: 'async_trait,
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Send a RPC call with the given method and parameters.

Loading content...

Implementors

Loading content...