pub trait Asset: AssetManager {
type Options: Clone;
// Required methods
fn fetch_with_progress(
&self,
options: Self::Options,
) -> Pin<Box<dyn Stream<Item = Progress> + Send + '_>>;
fn fetch(
&self,
options: Self::Options,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, Error>> + Send + Sync + '_>>;
fn name(&self) -> &str;
fn update_baseurl(&self, baseurl: &Path);
}