ClientConnection

Trait ClientConnection 

Source
pub trait ClientConnection: Sync + Send {
    // Required methods
    fn server_addr(&self) -> &SocketAddr;
    fn send_data(&self, buffer: &[u8]) -> TransportResult<()>;
    fn send_data_async(&self, buffer: Arc<Vec<u8>>) -> TransportResult<()>;
    fn send_data_batch(&self, buffers: &[Vec<u8>]) -> TransportResult<()>;
    fn send_data_batch_async(
        &self,
        buffers: Vec<Vec<u8>>,
    ) -> TransportResult<()>;
}
๐Ÿ‘ŽDeprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.

Required Methodsยง

Source

fn server_addr(&self) -> &SocketAddr

๐Ÿ‘ŽDeprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
Source

fn send_data(&self, buffer: &[u8]) -> TransportResult<()>

๐Ÿ‘ŽDeprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
Source

fn send_data_async(&self, buffer: Arc<Vec<u8>>) -> TransportResult<()>

๐Ÿ‘ŽDeprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
Source

fn send_data_batch(&self, buffers: &[Vec<u8>]) -> TransportResult<()>

๐Ÿ‘ŽDeprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.
Source

fn send_data_batch_async(&self, buffers: Vec<Vec<u8>>) -> TransportResult<()>

๐Ÿ‘ŽDeprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.

Implementorsยง