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

pub trait RpcServerStub<R: Rpc, I: RpcFrame<R::Request>, O: RpcFrame<R::Response>> {
    fn make_response(
        self: Arc<Self>,
        req: I
    ) -> Pin<Box<dyn Future<Output = Option<O>> + 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
) -> Pin<Box<dyn Future<Output = Option<O>> + 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...