Trait amethyst_assets::Reload
[−]
[src]
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>>; }
The Reload
trait provides a method which checks if an asset needs to be reloaded.
Required Methods
fn needs_reload(&self) -> bool
Checks if a reload is necessary.
fn name(&self) -> String
Returns the asset name.
fn format(&self) -> &'static str
Returns the format name.
fn reload(self: Box<Self>) -> Result<FormatValue<A>>
Reloads the asset.