pub fn check_available_memory(min_mb: u64) -> Result<u64, AppError>Expand description
Checks whether sufficient memory is available to start loading the model.
§Parameters
min_mb: minimum floor in MiB of available memory (typicallycrate::constants::MIN_AVAILABLE_MEMORY_MB).
§Errors
Returns AppError::LowMemory when available_mb < min_mb.
§Returns
Returns Ok(available_mb) with the actual available memory in MiB.