load_content_async

Function load_content_async 

Source
pub async fn load_content_async(path: &str) -> Result<String, String>
Expand description

Async version of load_content

§Arguments

  • path - Path to the file or URL to load

§Returns

  • Ok(String) - The content
  • Err(String) - Error message if loading failed