pub struct Watch {
pub path: String,
pub watcher_type: WatcherType,
pub watcher: Box<dyn Watcher>,
}
Expand description
An object watching a path for certain changes.
Fields§
§path: String
The path to the znode this is watching.
watcher_type: WatcherType
The type of changes this watch is looking for.
watcher: Box<dyn Watcher>
The handler for this watch, to call when it is triggered.
Auto Trait Implementations§
impl !RefUnwindSafe for Watch
impl Send for Watch
impl !Sync for Watch
impl Unpin for Watch
impl !UnwindSafe for Watch
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