diff options
Diffstat (limited to 'vendor/sysinfo/src/unknown')
-rw-r--r-- | vendor/sysinfo/src/unknown/disk.rs | 4 | ||||
-rw-r--r-- | vendor/sysinfo/src/unknown/network.rs | 5 | ||||
-rw-r--r-- | vendor/sysinfo/src/unknown/process.rs | 12 | ||||
-rw-r--r-- | vendor/sysinfo/src/unknown/system.rs | 2 |
4 files changed, 21 insertions, 2 deletions
diff --git a/vendor/sysinfo/src/unknown/disk.rs b/vendor/sysinfo/src/unknown/disk.rs index 8956da9f5..0d70dbd15 100644 --- a/vendor/sysinfo/src/unknown/disk.rs +++ b/vendor/sysinfo/src/unknown/disk.rs @@ -1,6 +1,6 @@ // Take a look at the license at the top of the repository in the LICENSE file. -use crate::{DiskExt, DiskType}; +use crate::{DiskExt, DiskKind}; use std::{ffi::OsStr, path::Path}; @@ -8,7 +8,7 @@ use std::{ffi::OsStr, path::Path}; pub struct Disk {} impl DiskExt for Disk { - fn type_(&self) -> DiskType { + fn kind(&self) -> DiskKind { unreachable!() } diff --git a/vendor/sysinfo/src/unknown/network.rs b/vendor/sysinfo/src/unknown/network.rs index 4a8ff4831..de8459e31 100644 --- a/vendor/sysinfo/src/unknown/network.rs +++ b/vendor/sysinfo/src/unknown/network.rs @@ -2,6 +2,7 @@ use std::collections::HashMap; +use crate::common::MacAddr; use crate::{NetworkExt, NetworksExt, NetworksIter}; #[doc = include_str!("../../md_doc/networks.md")] @@ -78,4 +79,8 @@ impl NetworkExt for NetworkData { fn total_errors_on_transmitted(&self) -> u64 { 0 } + + fn mac_address(&self) -> MacAddr { + MacAddr::UNSPECIFIED + } } diff --git a/vendor/sysinfo/src/unknown/process.rs b/vendor/sysinfo/src/unknown/process.rs index 4a12ec829..4e116d7df 100644 --- a/vendor/sysinfo/src/unknown/process.rs +++ b/vendor/sysinfo/src/unknown/process.rs @@ -86,9 +86,21 @@ impl ProcessExt for Process { None } + fn effective_user_id(&self) -> Option<&Uid> { + None + } + fn group_id(&self) -> Option<Gid> { None } + fn effective_group_id(&self) -> Option<Gid> { + None + } + fn wait(&self) {} + + fn session_id(&self) -> Option<Pid> { + None + } } diff --git a/vendor/sysinfo/src/unknown/system.rs b/vendor/sysinfo/src/unknown/system.rs index c205cdf96..b7b2d47e6 100644 --- a/vendor/sysinfo/src/unknown/system.rs +++ b/vendor/sysinfo/src/unknown/system.rs @@ -6,6 +6,7 @@ use crate::{ }; use std::collections::HashMap; +use std::time::Duration; declare_signals! { (), @@ -22,6 +23,7 @@ pub struct System { impl SystemExt for System { const IS_SUPPORTED: bool = false; const SUPPORTED_SIGNALS: &'static [Signal] = supported_signals(); + const MINIMUM_CPU_UPDATE_INTERVAL: Duration = Duration::from_millis(0); fn new_with_specifics(_: RefreshKind) -> System { System { |