Trait jsonrpsee_server::middleware::rpc::RpcServiceT
source · pub trait RpcServiceT<'a> {
type Future: Future<Output = MethodResponse> + Send;
// Required method
fn call(&self, request: Request<'a>) -> Self::Future;
}Expand description
Similar to the tower::Service but specific for jsonrpsee and
doesn’t requires &mut self for performance reasons.
Required Associated Types§
sourcetype Future: Future<Output = MethodResponse> + Send
type Future: Future<Output = MethodResponse> + Send
The future response value.