pub struct HelixWatcher { /* private fields */ }
Implementations§
Source§impl HelixWatcher
impl HelixWatcher
pub fn new() -> Result<Self>
pub fn with_config(_config: Config) -> Result<Self>
pub fn watch_file<P: AsRef<Path>>( &mut self, path: P, callback: ChangeCallback, ) -> Result<()>
pub fn watch_directory<P: AsRef<Path>>( &mut self, path: P, callback: ChangeCallback, ) -> Result<()>
pub fn unwatch<P: AsRef<Path>>(&mut self, path: P) -> Result<()>
pub fn set_compile_on_change(&mut self, enable: bool)
pub fn set_debounce(&mut self, duration: Duration)
Auto Trait Implementations§
impl Freeze for HelixWatcher
impl RefUnwindSafe for HelixWatcher
impl Send for HelixWatcher
impl Sync for HelixWatcher
impl Unpin for HelixWatcher
impl UnwindSafe for HelixWatcher
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