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ยง
use std::os::fd::AsFd;๐use std::env::vars_os;๐use std::path::PathBuf;๐use std::process::Command;๐use nix::errno::Errno;๐use nix::sys::socket::getsockopt;๐use nix::sys::socket::sockopt::Ipv6V6Only;๐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;use crate::Result;๐use crate::at;๐pub use self::limits::*;
Modulesยง
- compute
- CPU topology, affinity, and parallelism utilities.
- limits
- Process resource-limit utilities.
- storage
- Block-device, filesystem, and queue-discovery utilities.
- usage
- Process and thread resource-usage utilities.
Enumsยง
- Socket
Family - Classifies the socket address families recognized by the server.
Functionsยง
- command_
without_ env_ prefixes - Removes inherited environment names matching any supplied prefix from a command.
- 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=VALUEtext for a key.