pub struct HotReloadWatcher { /* private fields */ }Expand description
Hot-reload watcher for template files
Monitors template directories for file changes and triggers cache invalidation. Useful for development environments where templates change frequently.
Implementations§
Source§impl HotReloadWatcher
impl HotReloadWatcher
Sourcepub fn new(cache: Arc<TemplateCache>) -> Self
pub fn new(cache: Arc<TemplateCache>) -> Self
Sourcepub fn watch_directory<P: AsRef<Path>>(self, path: P) -> Self
pub fn watch_directory<P: AsRef<Path>>(self, path: P) -> Self
Auto Trait Implementations§
impl Freeze for HotReloadWatcher
impl !RefUnwindSafe for HotReloadWatcher
impl !Send for HotReloadWatcher
impl !Sync for HotReloadWatcher
impl Unpin for HotReloadWatcher
impl !UnwindSafe for HotReloadWatcher
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