The distro/OS id as it appears on the wire (matches `sysinfo::System::distribution_id()`).
(&self)
| 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> { |
no outgoing calls