pub struct ConfigWatcher { /* private fields */ }Implementations§
Source§impl ConfigWatcher
impl ConfigWatcher
pub fn new() -> Self
pub fn subscribe(&self, callback: ConfigChangeCallback)
pub fn notify(&self, change: ConfigChange)
pub async fn watch_stream( &self, stream: Pin<Box<dyn Stream<Item = ConfigChange> + Send>>, )
Trait Implementations§
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