pub trait Reload<D>:
ReloadClone<D>
+ Send
+ Sync
+ 'static {
// Required methods
fn needs_reload(&self) -> bool;
fn name(&self) -> String;
fn format(&self) -> &'static str;
fn reload(self: Box<Self>) -> Result<FormatValue<D>, Error>;
}
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.