pub trait ReloadResponder: Send + Sync {
// Required methods
fn add_file(&mut self, path: &str);
fn get_files(&self) -> Vec<String>;
fn get_last_mtime(&self) -> SystemTime;
fn build(&mut self) -> ExitStatus;
}
Expand description
Trait to be implemented for custom reloader responses
Required Methods§
Sourcefn add_file(&mut self, path: &str)
fn add_file(&mut self, path: &str)
Add a file which is tracked and the time stamp compared for changes
Sourcefn get_last_mtime(&self) -> SystemTime
fn get_last_mtime(&self) -> SystemTime
Retuns the current modified time of the built resource
Sourcefn build(&mut self) -> ExitStatus
fn build(&mut self) -> ExitStatus
Called when a tracked file is modified more recently than get_base_mtime
Implementors§
impl ReloadResponder for PluginReloadResponder
Reload responder implementation for PluginLib
uses cargo build, and hot lib reloader