(
writer: &mut W,
connection_id: &str,
app_id: &str,
page_id: u64,
enabled: bool,
)
| 877 | } |
| 878 | |
| 879 | async fn send_forward_indicate_webview<W: AsyncWrite + Unpin>( |
| 880 | writer: &mut W, |
| 881 | connection_id: &str, |
| 882 | app_id: &str, |
| 883 | page_id: u64, |
| 884 | enabled: bool, |
| 885 | ) -> Result<(), AppError> { |
| 886 | let mut args = rpc_args(connection_id); |
| 887 | args.insert( |
| 888 | "WIRApplicationIdentifierKey".to_owned(), |
| 889 | Value::String(app_id.to_owned()), |
| 890 | ); |
| 891 | args.insert( |
| 892 | "WIRPageIdentifierKey".to_owned(), |
| 893 | Value::Integer(page_id.into()), |
| 894 | ); |
| 895 | args.insert("WIRIndicateEnabledKey".to_owned(), Value::Boolean(enabled)); |
| 896 | send_rpc(writer, "_rpc_forwardIndicateWebView:", args).await |
| 897 | } |
| 898 | |
| 899 | async fn send_forward_socket_setup<W: AsyncWrite + Unpin>( |
| 900 | writer: &mut W, |
no test coverage detected