logo

Trait bevy::asset::AssetLoader[]

pub trait AssetLoader: 'static + Send + Sync {
    fn load(
        &'a self,
        bytes: &'a [u8],
        load_context: &'a mut LoadContext<'_>
    ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'a, Global>>
Notable traits for Pin<P>
impl<P> Future for Pin<P> where
    P: DerefMut,
    <P as Deref>::Target: Future
type Output = <<P as Deref>::Target as Future>::Output;
;
fn extensions(&self) -> &[&str]; }
Expand description

A loader for an asset source

Required methods

Implementors