ReloadResponder

Trait ReloadResponder 

Source
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§

Source

fn add_file(&mut self, path: &str)

Add a file which is tracked and the time stamp compared for changes

Source

fn get_files(&self) -> Vec<String>

Returns a vector of files which are currently being tracked

Source

fn get_last_mtime(&self) -> SystemTime

Retuns the current modified time of the built resource

Source

fn build(&mut self) -> ExitStatus

Called when a tracked file is modified more recently than get_base_mtime

Implementors§

Source§

impl ReloadResponder for PluginReloadResponder

Reload responder implementation for PluginLib uses cargo build, and hot lib reloader