Expand description
For crate-level documentation, all features need to be enabled.
Structs§
- CGroup
Limits - Contains memory limits for the current process.
- Cpu
- Contains all the methods of the
Cpustruct. - CpuRefresh
Kind - Used to determine what you want to refresh specifically on the
Cputype. - Disk
Usage - Type containing read and written bytes.
- Gid
- A group id wrapping a platform specific type.
- LoadAvg
- A struct representing system load average value.
- Memory
Refresh Kind - Used to determine which memory you want to refresh specifically.
- Pid
- Process ID.
- Process
- Struct containing information of a process.
- Process
Refresh Kind - Used to determine what you want to refresh specifically on the
Processtype. - Refresh
Kind - Used to determine what you want to refresh specifically on the
Systemtype. - System
- Structs containing system’s information such as processes, memory and CPU.
- Uid
- A user id wrapping a platform specific type.
Enums§
- Process
Status - Enum describing the different status of a process.
- Processes
ToUpdate - This enum allows you to specify if you want all processes to be updated or just some of them.
- Signal
- An enum representing signals on UNIX-like systems.
- Thread
Kind - Enum describing the different kind of threads.
- Update
Kind - This enum allows you to specify when you want the related information to be updated.
Constants§
- IS_
SUPPORTED_ SYSTEM - Returns
trueif this OS is supported. Please refer to the crate-level documentation to get the list of supported OSes. - MINIMUM_
CPU_ UPDATE_ INTERVAL - This is the minimum interval time used internally by
sysinfoto refresh the CPU time. - SUPPORTED_
SIGNALS - Returns the list of the supported signals on this system (used by
Process::kill_with).
Functions§
- get_
current_ pid - Returns the pid for the current process.
- set_
open_ files_ limit - This function is only used on Linux targets, when the
systemfeature is enabled. In other cases, it does nothing and returnsfalse.