Trait tiny_rpc::rpc::RpcServerStub[][src]

pub trait RpcServerStub<R: Rpc, I: RpcFrame, O: RpcFrame> {
    fn make_response(
        self: Arc<Self>,
        req: I,
        rsp_handler: ResponseHandler<O>
    ) -> Pin<Box<dyn Future<Output = ()> + Send>>; }

The RpcServerStub trait allows making responses for requests.

The implementation is usually generated by macro.

Required methods

fn make_response(
    self: Arc<Self>,
    req: I,
    rsp_handler: ResponseHandler<O>
) -> Pin<Box<dyn Future<Output = ()> + Send>>
[src]

Loading content...

Implementors

Loading content...