Skip to main content

RpcServiceHandler

Trait RpcServiceHandler 

Source
pub trait RpcServiceHandler: Send + Sync {
    // Required method
    fn call(
        &self,
        ctx: RpcCallContext,
        method_id: MethodId,
        payload: Value,
    ) -> HandlerFuture;
}

Required Methods§

Source

fn call( &self, ctx: RpcCallContext, method_id: MethodId, payload: Value, ) -> HandlerFuture

Implementors§

Source§

impl<F> RpcServiceHandler for F
where F: Send + Sync + 'static + Fn(RpcCallContext, MethodId, Value) -> HandlerFuture,