(&self)
| 234 | |
| 235 | #[cfg(not(target_os = "android"))] |
| 236 | pub fn get_hwid(&self) -> String { |
| 237 | self.hwid |
| 238 | .as_ref() |
| 239 | .unwrap_or( |
| 240 | &IdBuilder::new(Encryption::SHA256) |
| 241 | .add_component(HWIDComponent::OSName) |
| 242 | .add_component(HWIDComponent::SystemID) |
| 243 | .add_component(HWIDComponent::MachineName) |
| 244 | .add_component(HWIDComponent::CPUID) |
| 245 | .build("cloudpub") |
| 246 | .unwrap_or(self.agent_id.clone()), |
| 247 | ) |
| 248 | .to_string() |
| 249 | } |
| 250 | |
| 251 | #[cfg(target_os = "android")] |
| 252 | pub fn get_hwid(&self) -> String { |
no test coverage detected