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: String
Name of the plugin
path: String
Path to the plugins build director, where you would run cargo build -p <name>
output_filepath: String
Full 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
Reload responder implementation for PluginLib
uses cargo build, and hot lib reloader
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
Auto Trait Implementations§
impl Freeze for PluginReloadResponder
impl RefUnwindSafe for PluginReloadResponder
impl Send for PluginReloadResponder
impl Sync for PluginReloadResponder
impl Unpin for PluginReloadResponder
impl UnwindSafe for PluginReloadResponder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more