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>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
; }

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>>

Notable traits for Pin<P>

impl<P> Future for Pin<P> where
    P: Unpin + DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
[src]

Loading content...

Implementors

Loading content...