pub fn available_memory() -> Option<u64>Expand description
Bytes of memory available to this process: on Linux MemAvailable,
lowered to the headroom left under a cgroup v2 memory.max; on Apple
systems the free, speculative and inactive pages. None elsewhere.