Skip to main content

RpcClient

Trait RpcClient 

Source
pub trait RpcClient:
    Send
    + Sync
    + 'static {
    // Required method
    fn call(
        &self,
        request: Arc<Request>,
        options: RpcCallOptions,
    ) -> RpcFuture<'_, Result<RpcReply, RpcError>>;
}
Expand description

Object-safe client adapter: gRPC, Thrift, or another unary RPC framework.

Required Methods§

Source

fn call( &self, request: Arc<Request>, options: RpcCallOptions, ) -> RpcFuture<'_, Result<RpcReply, RpcError>>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§