Skip to main content

Module sys

Module sys 

Source
Expand description

Operating-system resource and platform-integration utilities.

Submodules expose compute, resource-limit, storage, and usage information. Top-level helpers normalize executable paths, parse device metadata, and classify socket file descriptors on Unix.

Re-exports§

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

Modules§

compute
CPU topology, affinity, and parallelism utilities.
limits
Process resource-limit utilities.
storage
Block-device and queue-discovery utilities.
usage
Process and thread resource-usage utilities.

Enums§

SocketFamily
Classifies the socket address families recognized by the server.

Functions§

current_exe
Returns the current executable path without a trailing deletion marker.
current_exe_deleted
Reports whether the current executable path carries a deletion marker.
get_socket_family
Determines the address family of an open socket file descriptor on Unix.
is_ipv6_only
Whether an IPv6 socket serves IPv6 traffic alone.
uevent_find
Searches newline-delimited KEY=VALUE text for a key.