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

Checks if a reload is necessary.

Returns the asset name.

Returns the format name.

Reloads the asset.

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more

Implementors