Function load_data

Source
pub fn load_data<R, F>(
    path: PathBuf,
    use_media_type: UseMediaType,
    use_file_name: Option<String>,
    ctx: &impl Context,
    post_process: F,
) -> Box<dyn Future<Item = R, Error = ResourceLoadingError> + Send>
where R: Send + 'static, F: FnOnce(Data) -> Result<R, ResourceLoadingError> + Send + 'static,