perspective_client

Trait ClientHandler

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

Required Methods§

Source

fn send_request<'a>( &'a self, msg: &'a [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§