Trait htrpc::HandleRpc [] [src]

pub trait HandleRpc<P>: Clone + Send + 'static where
    P: Procedure
{ type Future: Future<Item = <P as Procedure>::Response, Error = NeverFail> + Send + 'static; fn handle_rpc(self, request: <P as Procedure>::Request) -> Self::Future; }

This trait allows to handle RPC requests issued by clients.

Associated Types

The Future which represents the result of an invocation of the handle_rpc method.

Required Methods

Handles an RPC request issued by a client.

Implementors