Expand description
§Arpy Actix
arpy integration for actix_web.
§Example
#[derive(MsgId, Serialize, Deserialize, Debug)]
struct MyAdd(u32, u32);
impl FnRemote for MyAdd {
type Output = u32;
}
async fn my_add(args: MyAdd) -> u32 {
args.0 + args.1
}
let ws = WebSocketRouter::new().handle(my_add);
App::new()
.ws_rpc_route("ws", ws, 1000)
.http_rpc_route("http", my_add);Modules§
- http
- Building blocks for writing HTTP handlers.
Traits§
- RpcApp
- Extension trait to add RPC routes. See module level documentation for an example.