pub struct HotloadBatch<API: WrapperApi> {
pub watch: UA<RecommendedWatcher>,
/* private fields */
}Fields§
§watch: UA<RecommendedWatcher>Implementations§
Source§impl<API: WrapperApi + 'static + Send> HotloadBatch<API>
impl<API: WrapperApi + 'static + Send> HotloadBatch<API>
pub fn new( dir_path: impl Into<String>, ) -> Result<Self, Box<dyn Error + Send + Sync>>
Sourcepub fn init_load<F: FnMut(EventNewDll<API>, Option<EventOldDll<API>>) + Send + 'static + Clone>(
&self,
event_call: F,
) -> Result<(), Box<dyn Error + Send + Sync>>
pub fn init_load<F: FnMut(EventNewDll<API>, Option<EventOldDll<API>>) + Send + 'static + Clone>( &self, event_call: F, ) -> Result<(), Box<dyn Error + Send + Sync>>
“dll created” or “file rename to” is actively loaded frist time load EventOldDll is None load all “file_name-xxx” dll
pub fn iter(&self) -> Iter<'_, Hotload<API>>
Auto Trait Implementations§
impl<API> !Freeze for HotloadBatch<API>
impl<API> !RefUnwindSafe for HotloadBatch<API>
impl<API> !UnwindSafe for HotloadBatch<API>
impl<API> Send for HotloadBatch<API>
impl<API> Sync for HotloadBatch<API>
impl<API> Unpin for HotloadBatch<API>
impl<API> UnsafeUnpin for HotloadBatch<API>
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