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

Checks if a reload is necessary.

Returns the asset name.

Returns the format name.

Reloads the asset.

Implementors