Trait amethyst_assets::Reload
source · pub trait Reload<A: Asset>: ReloadClone<A> + Send + Sync + 'static {
fn needs_reload(&self) -> bool;
fn name(&self) -> String;
fn format(&self) -> &'static str;
fn reload(self: Box<Self>) -> Result<FormatValue<A>>;
}
Expand description
The Reload
trait provides a method which checks if an asset needs to be reloaded.
Required Methods
sourcefn needs_reload(&self) -> bool
fn needs_reload(&self) -> bool
Checks if a reload is necessary.
sourcefn reload(self: Box<Self>) -> Result<FormatValue<A>>
fn reload(self: Box<Self>) -> Result<FormatValue<A>>
Reloads the asset.