pub trait ResourceLoader: Send + Sync {
    fn name(&self) -> Cow<'_, str>;
    fn try_load(
        &self,
        path: &Path,
        reader: &mut dyn Read
    ) -> Result<Option<(String, Arc<dyn Resource + 'static>)>, Error>; fn into_boxed(self) -> Box<dyn ResourceLoader + 'static, Global>
    where
        Self: Sized + 'static
, { ... } }

Required Methods§

Name of the resource loader.

Try to load a resource give a path and its corresponding reader. None is returned if the path is not accepted by this loader.

Provided Methods§

Implementors§