Struct hotline_rs::plugin::PluginReloadResponder
source · pub struct PluginReloadResponder {
pub name: String,
pub path: String,
pub output_filepath: String,
pub files: Vec<String>,
}Expand description
General dll plugin responder, will check for source code changes and run cargo build to re-build the library
Fields§
§name: StringName of the plugin
path: StringPath to the plugins build director, where you would run cargo build -p <name>
output_filepath: StringFull path to the build binary dylib or dll
files: Vec<String>Array of source code files to track and check for changes
Trait Implementations§
source§impl ReloadResponder for PluginReloadResponder
impl ReloadResponder for PluginReloadResponder
Reload responder implementation for PluginLib uses cargo build, and hot lib reloader
source§fn 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
source§fn get_files(&self) -> Vec<String>
fn get_files(&self) -> Vec<String>
Returns a vector of files which are currently being tracked
source§fn get_last_mtime(&self) -> SystemTime
fn get_last_mtime(&self) -> SystemTime
Retuns the current modified time of the built resource
source§fn build(&mut self) -> ExitStatus
fn build(&mut self) -> ExitStatus
Called when a tracked file is modified more recently than get_base_mtime