Client

Trait Client 

Source
pub trait Client: Sized {
    // Required methods
    fn from_handle(handle: ClientDriverHandle) -> Self;
    fn handle(&self) -> &ClientDriverHandle;

    // Provided methods
    fn new(transport: Transport) -> (Self, BoxFuture<'static, ()>) { ... }
    fn make_request(
        &self,
        req: RpcFrame,
    ) -> BoxFuture<'static, Result<RpcFrame>> { ... }
}

Required Methods§

Provided Methods§

Source

fn new(transport: Transport) -> (Self, BoxFuture<'static, ()>)

Source

fn make_request(&self, req: RpcFrame) -> BoxFuture<'static, Result<RpcFrame>>

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§