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§