Trait nip_55::json_rpc::JsonRpcClientTransport

source ·
pub trait JsonRpcClientTransport<E> {
    // Required methods
    fn send_request<'life0, 'async_trait>(
        &'life0 self,
        request: JsonRpcRequest
    ) -> Pin<Box<dyn Future<Output = Result<JsonRpcResponse, E>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn send_batch_request<'life0, 'async_trait>(
        &'life0 self,
        requests: Vec<JsonRpcRequest>
    ) -> Pin<Box<dyn Future<Output = Result<Vec<JsonRpcResponse>, E>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

source

fn send_request<'life0, 'async_trait>( &'life0 self, request: JsonRpcRequest ) -> Pin<Box<dyn Future<Output = Result<JsonRpcResponse, E>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

source

fn send_batch_request<'life0, 'async_trait>( &'life0 self, requests: Vec<JsonRpcRequest> ) -> Pin<Box<dyn Future<Output = Result<Vec<JsonRpcResponse>, E>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§