You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: loader.rs
    path of file: ./repos/Fyrox/src/resource/texture
    
    the code of the file until where you have to start completion: //! Texture loader.

use crate::{
    asset::{
        io::ResourceIo,
        loader::{
            BoxedImportOptionsLoaderFuture, BoxedLoaderFuture, LoaderPayload, ResourceLoader,
        },
        options::{try_get_import_settings, try_get_import_settings_opaque, BaseImportOptions},
        state::LoadError,
    },
    core::{uuid::Uuid, TypeUuidProvider},
    resource::texture::{Texture, TextureImportOptions},
};
use std::{path::PathBuf, sync::Arc};

/// Default implementation for texture loading.
pub
    
    fn load(&self, path: PathBuf, io: Arc<dyn ResourceIo>) -> BoxedLoaderFuture {
        let default_import_options = self.default_import_options.clone();
        Box::pin(async move {
            let io = io.as_ref();

            let import_options = try_get_import_settings(&path, io)
                .await
                .unwrap_or(default_import_options);

            let raw_texture = Texture::load_from_file(&path, io, import_options)
                .await
                .map_err(LoadError::new)?;

            Ok(LoaderPayload::new(raw_texture))
        })
    }