async fn send_request<R: Request>( session: &Session, request: &R, ) -> Result<RpcOutcome, ErrorData>
Sends a request of the API to a session and waits for its outcome.
Fails if the request can’t be serialized.