Trait quicksilver::asset::Loadable [] [src]

pub trait Loadable: Sized + Clone {
    type Error: Clone;
    fn load<P: AsRef<Path>>(path: P) -> LoadingAsset<Self>;
}

A trait that allows an asset to be asynchronously loaded

Currently on desktop assets are actually loaded synchronously, but on the web they are loaded async.

Associated Types

The error type to return when an asset fails to load

Required Methods

Load an asset from a path

Implementors