MCPcopy Create free account
hub / github.com/CodSpeedHQ/codspeed / id

Method id

src/system/os.rs:44–49  ·  view source on GitHub ↗

The distro/OS id as it appears on the wire (matches `sysinfo::System::distribution_id()`).

(&self)

Source from the content-addressed store, hash-verified

42
43 /// The distro/OS id as it appears on the wire (matches `sysinfo::System::distribution_id()`).
44 pub fn id(&self) -> &str {
45 match self {
46 Self::Linux(distro) => distro.id(),
47 Self::Macos { .. } => "macos",
48 }
49 }
50
51 /// The OS version, absent on the distributions that report none.
52 pub fn version(&self) -> Option<&str> {

Callers 9

get_commit_hashMethod · 0.80
get_git_ref_infoMethod · 0.80
fromMethod · 0.80
performFunction · 0.80
pidMethod · 0.80
spawnMethod · 0.80
spawn_stoppedFunction · 0.80

Calls

no outgoing calls

Tested by 1