Skip to main content

max_memory_locked

Function max_memory_locked 

Source
pub fn max_memory_locked() -> Result<(usize, usize)>
Expand description

Returns the soft and hard locked-memory limits.

The tuple is ordered as the current soft limit followed by the maximum hard limit. Values come from RLIMIT_MEMLOCK.

ยงPanics

Panics when either platform limit cannot be represented as usize.