Skip to main content

Module sys

Module sys 

Source

Re-exports§

pub use self::compute::available_parallelism;
pub use self::usage::statm;
pub use self::usage::thread_usage;
pub use self::usage::usage;
pub use self::limits::*;

Modules§

compute
System utilities related to compute/processing
limits
storage
System utilities related to devices/peripherals
usage

Structs§

Usage
Output of getrusage with information about resource usage. Some of the fields may be unused in some platforms, and will be always zeroed out. See their manuals for details.

Enums§

SocketFamily

Functions§

current_exe
Return a possibly corrected std::env::current_exe() even if the path is marked deleted.
current_exe_deleted
Determine if the server’s executable was removed or replaced. This is a specific check; useful for successful restarts. May not be available or accurate on all platforms; defaults to false.
get_socket_family
uevent_find
Parse the KEY=VALUE contents of a uevent file searching for key and returning the value.