pub fn memory_max() -> Result<Option<u64>, ReadParseError>Expand description
Reads and parses the memory max file.
Data source: MEMORY_MAX
§Errors
Returns an error if the memory max file MEMORY_MAX could not be read or parsed.
§Example
match memory_max() {
Ok(Some(v)) => println!("Max memory: {v}"),
Ok(None) => println!("No max memory constraint"),
Err(e) => println!("Failed to read and parse memory files: {e}"),
}