solana_connection_cache::nonblocking::client_connection

Trait ClientConnection

source
pub trait ClientConnection {
    // Required methods
    fn server_addr(&self) -> &SocketAddr;
    fn send_data<'life0, 'life1, 'async_trait>(
        &'life0 self,
        buffer: &'life1 [u8],
    ) -> Pin<Box<dyn Future<Output = TransportResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
    fn send_data_batch<'life0, 'life1, 'async_trait>(
        &'life0 self,
        buffers: &'life1 [Vec<u8>],
    ) -> Pin<Box<dyn Future<Output = TransportResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}

Required Methods§

source

fn server_addr(&self) -> &SocketAddr

source

fn send_data<'life0, 'life1, 'async_trait>( &'life0 self, buffer: &'life1 [u8], ) -> Pin<Box<dyn Future<Output = TransportResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

source

fn send_data_batch<'life0, 'life1, 'async_trait>( &'life0 self, buffers: &'life1 [Vec<u8>], ) -> Pin<Box<dyn Future<Output = TransportResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Implementors§