Trait solana_client::rpc_sender::RpcSender

source ·
pub trait RpcSender {
    // Required methods
    fn send<'life0, 'async_trait>(
        &'life0 self,
        request: RpcRequest,
        params: Value
    ) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;
    fn get_transport_stats(&self) -> RpcTransportStats;
    fn url(&self) -> String;
}
Expand description

A transport for RPC calls.

RpcSender implements the underlying transport of requests to, and responses from, a Solana node, and is used primarily by RpcClient.

Required Methods§

source

fn send<'life0, 'async_trait>( &'life0 self, request: RpcRequest, params: Value ) -> Pin<Box<dyn Future<Output = Result<Value, Error>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

source

fn get_transport_stats(&self) -> RpcTransportStats

source

fn url(&self) -> String

Implementors§