]> git.proxmox.com Git - rustc.git/blob - vendor/sysinfo/src/apple/app_store/process.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / sysinfo / src / apple / app_store / process.rs
1 // Take a look at the license at the top of the repository in the LICENSE file.
2
3 use std::path::Path;
4
5 use crate::{DiskUsage, Gid, Pid, ProcessExt, ProcessStatus, Signal, Uid};
6
7 #[doc = include_str!("../../../md_doc/process.md")]
8 pub struct Process;
9
10 impl ProcessExt for Process {
11 fn kill_with(&self, _signal: Signal) -> Option<bool> {
12 None
13 }
14
15 fn name(&self) -> &str {
16 ""
17 }
18
19 fn cmd(&self) -> &[String] {
20 &[]
21 }
22
23 fn exe(&self) -> &Path {
24 Path::new("/")
25 }
26
27 fn pid(&self) -> Pid {
28 Pid(0)
29 }
30
31 fn environ(&self) -> &[String] {
32 &[]
33 }
34
35 fn cwd(&self) -> &Path {
36 Path::new("/")
37 }
38
39 fn root(&self) -> &Path {
40 Path::new("/")
41 }
42
43 fn memory(&self) -> u64 {
44 0
45 }
46
47 fn virtual_memory(&self) -> u64 {
48 0
49 }
50
51 fn parent(&self) -> Option<Pid> {
52 None
53 }
54
55 fn status(&self) -> ProcessStatus {
56 ProcessStatus::Unknown(0)
57 }
58
59 fn start_time(&self) -> u64 {
60 0
61 }
62
63 fn run_time(&self) -> u64 {
64 0
65 }
66
67 fn cpu_usage(&self) -> f32 {
68 0.0
69 }
70
71 fn disk_usage(&self) -> DiskUsage {
72 DiskUsage::default()
73 }
74
75 fn user_id(&self) -> Option<&Uid> {
76 None
77 }
78
79 fn group_id(&self) -> Option<Gid> {
80 None
81 }
82 }