Skip to main content

limit

Function limit 

Source
pub fn limit() -> Result<Option<MemoryLimit>>
Expand description

The memory limit on this process, or None when there is none (or it is at or above the machine’s memory). Linux: the smallest cgroup v2 memory.max over the cgroup and its ancestors, or cgroup v1’s hierarchical_memory_limit. Windows: the job object’s process or job memory limit. macOS has no equivalent: None.

§Errors

As total.