(&self)
| 136 | } |
| 137 | |
| 138 | fn check_roaming_allowed(&self) -> Result<(), Error> { |
| 139 | trace!("Check if roaming is allowed"); |
| 140 | let dp = self.device_profile.as_ref().unwrap(); |
| 141 | if !dp.allow_roaming { |
| 142 | return Err(Error::RoamingIsNotAllowed); |
| 143 | } |
| 144 | |
| 145 | Ok(()) |
| 146 | } |
| 147 | |
| 148 | // We need to get either the device-keys or a JS client. In any other case, this must return an error. |
| 149 | async fn get_device_keys_or_js_client(&mut self) -> Result<()> { |