Struct zookeeper_client::PersistentWatcher
source · pub struct PersistentWatcher { /* private fields */ }
Expand description
Watcher for persistent and recursive watch.
Implementations§
source§impl PersistentWatcher
impl PersistentWatcher
sourcepub async fn changed(&mut self) -> WatchedEvent
pub async fn changed(&mut self) -> WatchedEvent
Waits for next event which could be node event or session activities.
Panics
Panic after terminal session event received.
BUG
Events during reconnection could be lost due to ZOOKEEPER-4698, as events during connection loss are not delivered in auto watch reset. So, callers should rebuild their knowledge to avoid data inconsistency after SessionState::Disconnected and following SessionState::SyncConnected. See also OneshotWatcher::changed.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for PersistentWatcher
impl Send for PersistentWatcher
impl Sync for PersistentWatcher
impl Unpin for PersistentWatcher
impl !UnwindSafe for PersistentWatcher
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