pub struct ConfigurationWatcher { /* private fields */ }Expand description
Configuration watcher for detecting configuration file changes
This watcher monitors configuration files for changes and reloads them without requiring a system restart.
Implementations§
Source§impl ConfigurationWatcher
impl ConfigurationWatcher
Sourcepub fn with_interval(config_dir: PathBuf, interval: Duration) -> Self
pub fn with_interval(config_dir: PathBuf, interval: Duration) -> Self
Create a new configuration watcher with custom check interval
Sourcepub fn is_running(&self) -> Result<bool>
pub fn is_running(&self) -> Result<bool>
Check if the watcher is running
Sourcepub async fn check_changes(&self) -> Result<()>
pub async fn check_changes(&self) -> Result<()>
Manually check for configuration file changes
Auto Trait Implementations§
impl Freeze for ConfigurationWatcher
impl RefUnwindSafe for ConfigurationWatcher
impl Send for ConfigurationWatcher
impl Sync for ConfigurationWatcher
impl Unpin for ConfigurationWatcher
impl UnwindSafe for ConfigurationWatcher
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