Trait bones_asset::AssetLoader 
source · pub trait AssetLoader: Sync + Send + 'static {
    // Required method
    fn load(
        &self,
        ctx: AssetLoadCtx,
        bytes: &[u8],
    ) -> BoxedFuture<Result<SchemaBox>>;
}Expand description
A custom assset loader.
Required Methods§
sourcefn load(
    &self,
    ctx: AssetLoadCtx,
    bytes: &[u8],
) -> BoxedFuture<Result<SchemaBox>>
 
fn load( &self, ctx: AssetLoadCtx, bytes: &[u8], ) -> BoxedFuture<Result<SchemaBox>>
Load the asset from raw bytes.