MCPcopy Create free account
hub / github.com/ermak-dev/cloudpub / get_hwid

Method get_hwid

client/src/config.rs:236–249  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

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 {

Callers 1

run_control_channelMethod · 0.80

Calls 2

buildMethod · 0.80
cloneMethod · 0.80

Tested by

no test coverage detected