pub struct ConfigWatcher<T> { /* private fields */ }Expand description
A handle that receives updated configuration values when watched files change.
Created by ConfigurationLoader::watch. The watcher runs on a background
thread and sends the latest successfully loaded value through the channel.
§Hot-reload limitations
- Only config values read through
latestare live-updated. - The DI container and already-constructed providers retain their original values unless they explicitly poll this watcher.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> !RefUnwindSafe for ConfigWatcher<T>
impl<T> !UnwindSafe for ConfigWatcher<T>
impl<T> Freeze for ConfigWatcher<T>
impl<T> Send for ConfigWatcher<T>
impl<T> Sync for ConfigWatcher<T>
impl<T> Unpin for ConfigWatcher<T>
impl<T> UnsafeUnpin for ConfigWatcher<T>
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