Function handle_rpc

Source
pub async fn handle_rpc<S: 'static + ServerRpcService>(
    uri: &str,
    state: S::ServerState,
    payload: &[u8],
) -> Result<Vec<u8>, ServerRpcProtocolError<<S::Format as RpcFormat>::Error>>
where &'static S::RegistryItem: Collect,
Available on crate feature server only.
Expand description

Handle a rpc call on the server.