[][src]Function libuv::misc::get_constrained_memory

pub fn get_constrained_memory() -> u64

Gets the amount of memory available to the process (in bytes) based on limits imposed by the OS. If there is no such constraint, or the constraint is unknown, 0 is returned. Note that it is not unusual for this value to be less than or greater than uv_get_total_memory().

Note: This function currently only returns a non-zero value on Linux, based on cgroups if it is present.