[][src]Trait amethyst_assets::Reload

pub trait Reload<D>: ReloadClone<D> + Send + Sync + 'static {
    fn needs_reload(&self) -> bool;
fn name(&self) -> String;
fn format(&self) -> &'static str;
fn reload(self: Box<Self>) -> Result<FormatValue<D>, Error>; }

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<D>, Error>

Reloads the asset.

Loading content...

Implementors

impl<D: 'static> Reload<D> for SingleFile<D>[src]

Loading content...