pub struct ConfigWatcher { /* private fields */ }Expand description
Configuration watcher that can be used to monitor changes to specific keys
Implementations§
Source§impl ConfigWatcher
impl ConfigWatcher
Sourcepub fn new(key_pattern: String, receiver: Receiver<ConfigChange>) -> Self
pub fn new(key_pattern: String, receiver: Receiver<ConfigChange>) -> Self
Create a new configuration watcher
Sourcepub async fn next(&mut self) -> Option<ConfigChange>
pub async fn next(&mut self) -> Option<ConfigChange>
Get the next configuration change that matches this watcher’s pattern
Auto Trait Implementations§
impl Freeze for ConfigWatcher
impl !RefUnwindSafe for ConfigWatcher
impl Send for ConfigWatcher
impl Sync for ConfigWatcher
impl Unpin for ConfigWatcher
impl !UnwindSafe for ConfigWatcher
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