| 184 | } |
| 185 | |
| 186 | pub async fn app_s_key_req( |
| 187 | &self, |
| 188 | pl: &mut AppSKeyReqPayload, |
| 189 | async_resp: Option<Receiver<Vec<u8>>>, |
| 190 | ) -> Result<AppSKeyAnsPayload> { |
| 191 | pl.base.sender_id.clone_from(&self.config.sender_id); |
| 192 | pl.base.receiver_id.clone_from(&self.config.receiver_id); |
| 193 | pl.base.message_type = MessageType::AppSKeyReq; |
| 194 | |
| 195 | let mut ans: AppSKeyAnsPayload = Default::default(); |
| 196 | self.request(None, &pl, &mut ans, async_resp).await?; |
| 197 | Ok(ans) |
| 198 | } |
| 199 | |
| 200 | pub async fn pr_start_req( |
| 201 | &self, |