pub fn get_available_memory() -> u64
Expand description

Gets the amount of free memory that is still available to the process (in bytes). This differs from get_free_memory() in that it takes into account any limits imposed by the OS. If there is no such constraint, or the constraint is unknown, the amount returned will be identical to get_free_memory().

Note: This function currently only returns a value that is different from what get_free_memory() reports on Linux, based on cgroups if it is present.