pub struct ConfigFileWatcher { /* private fields */ }Expand description
Watches the config file for changes using OS-native file notifications.
Spawns a background thread on construction. When a change is detected,
sets an internal flag that the main loop can consume via poll.
Consumers:
- TUI:
poll()in the main event loop to trigger hot-reload. - Dashboard API (future):
poll()in a loop to emitConfigChangedSSE.
Implementations§
Auto Trait Implementations§
impl Freeze for ConfigFileWatcher
impl RefUnwindSafe for ConfigFileWatcher
impl Send for ConfigFileWatcher
impl Sync for ConfigFileWatcher
impl Unpin for ConfigFileWatcher
impl UnsafeUnpin for ConfigFileWatcher
impl UnwindSafe for ConfigFileWatcher
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