(
writer: &mut W,
connection_id: &str,
app_id: &str,
page_id: u64,
sender_id: &str,
)
| 946 | } |
| 947 | |
| 948 | async fn send_forward_did_close<W: AsyncWrite + Unpin>( |
| 949 | writer: &mut W, |
| 950 | connection_id: &str, |
| 951 | app_id: &str, |
| 952 | page_id: u64, |
| 953 | sender_id: &str, |
| 954 | ) -> Result<(), AppError> { |
| 955 | let mut args = rpc_args(connection_id); |
| 956 | args.insert( |
| 957 | "WIRApplicationIdentifierKey".to_owned(), |
| 958 | Value::String(app_id.to_owned()), |
| 959 | ); |
| 960 | args.insert( |
| 961 | "WIRPageIdentifierKey".to_owned(), |
| 962 | Value::Integer(page_id.into()), |
| 963 | ); |
| 964 | args.insert( |
| 965 | "WIRSenderKey".to_owned(), |
| 966 | Value::String(sender_id.to_owned()), |
| 967 | ); |
| 968 | send_rpc(writer, "_rpc_forwardDidClose:", args).await |
| 969 | } |
| 970 | |
| 971 | async fn send_rpc<W: AsyncWrite + Unpin>( |
| 972 | writer: &mut W, |
no test coverage detected