summaryrefslogtreecommitdiffstats
path: root/vendor/sysinfo/src/apple/app_store/process.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/sysinfo/src/apple/app_store/process.rs')
-rw-r--r--vendor/sysinfo/src/apple/app_store/process.rs82
1 files changed, 82 insertions, 0 deletions
diff --git a/vendor/sysinfo/src/apple/app_store/process.rs b/vendor/sysinfo/src/apple/app_store/process.rs
new file mode 100644
index 000000000..8c3348ee9
--- /dev/null
+++ b/vendor/sysinfo/src/apple/app_store/process.rs
@@ -0,0 +1,82 @@
+// Take a look at the license at the top of the repository in the LICENSE file.
+
+use std::path::Path;
+
+use crate::{DiskUsage, Gid, Pid, ProcessExt, ProcessStatus, Signal, Uid};
+
+#[doc = include_str!("../../../md_doc/process.md")]
+pub struct Process;
+
+impl ProcessExt for Process {
+ fn kill_with(&self, _signal: Signal) -> Option<bool> {
+ None
+ }
+
+ fn name(&self) -> &str {
+ ""
+ }
+
+ fn cmd(&self) -> &[String] {
+ &[]
+ }
+
+ fn exe(&self) -> &Path {
+ Path::new("/")
+ }
+
+ fn pid(&self) -> Pid {
+ Pid(0)
+ }
+
+ fn environ(&self) -> &[String] {
+ &[]
+ }
+
+ fn cwd(&self) -> &Path {
+ Path::new("/")
+ }
+
+ fn root(&self) -> &Path {
+ Path::new("/")
+ }
+
+ fn memory(&self) -> u64 {
+ 0
+ }
+
+ fn virtual_memory(&self) -> u64 {
+ 0
+ }
+
+ fn parent(&self) -> Option<Pid> {
+ None
+ }
+
+ fn status(&self) -> ProcessStatus {
+ ProcessStatus::Unknown(0)
+ }
+
+ fn start_time(&self) -> u64 {
+ 0
+ }
+
+ fn run_time(&self) -> u64 {
+ 0
+ }
+
+ fn cpu_usage(&self) -> f32 {
+ 0.0
+ }
+
+ fn disk_usage(&self) -> DiskUsage {
+ DiskUsage::default()
+ }
+
+ fn user_id(&self) -> Option<&Uid> {
+ None
+ }
+
+ fn group_id(&self) -> Option<Gid> {
+ None
+ }
+}