Struct zookeeper_async::WatchedEvent
source · pub struct WatchedEvent {
pub event_type: WatchedEventType,
pub keeper_state: KeeperState,
pub path: Option<String>,
}
Expand description
Represents a change on the ZooKeeper that a Watcher
is able to respond to.
The WatchedEvent
includes exactly what happened, the current state of the ZooKeeper, and the
path of the znode that was involved in the event.
Fields§
§event_type: WatchedEventType
The trigger that caused the watch to hit.
keeper_state: KeeperState
The current state of ZooKeeper (and the client’s connection to it).
path: Option<String>
The path of the znode that was involved. This will be None
for session-related triggers.
Trait Implementations§
source§impl Clone for WatchedEvent
impl Clone for WatchedEvent
source§fn clone(&self) -> WatchedEvent
fn clone(&self) -> WatchedEvent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for WatchedEvent
impl Send for WatchedEvent
impl Sync for WatchedEvent
impl Unpin for WatchedEvent
impl UnwindSafe for WatchedEvent
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