ClientHandler

Trait ClientHandler 

Source
pub trait ClientHandler:
    Clone
    + Send
    + Sync
    + 'static {
    // Required method
    fn send_request(
        &self,
        msg: Vec<u8>,
    ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send;
}
Expand description

The client-side representation of a connection to a Server.

Required Methods§

Source

fn send_request( &self, msg: Vec<u8>, ) -> impl Future<Output = Result<(), Box<dyn Error + Send + Sync>>> + Send

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§