Trait PlatformAssetLoader

Source
pub trait PlatformAssetLoader {
    type Asset: Read + Seek + 'static;
    type StreamingAsset: InputStream + Sync + Send + 'static;

    // Required methods
    fn get(&self, path: &str, ext: &str) -> IOResult<Self::Asset>;
    fn get_streaming(
        &self,
        path: &str,
        ext: &str,
    ) -> IOResult<Self::StreamingAsset>;
}

Required Associated Types§

Source

type Asset: Read + Seek + 'static

Source

type StreamingAsset: InputStream + Sync + Send + 'static

Required Methods§

Source

fn get(&self, path: &str, ext: &str) -> IOResult<Self::Asset>

Source

fn get_streaming(&self, path: &str, ext: &str) -> IOResult<Self::StreamingAsset>

Implementors§