Struct tokio_zookeeper::WatchedEvent [−][src]
pub struct WatchedEvent { pub event_type: WatchedEventType, pub keeper_state: KeeperState, pub path: String, }
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: String
The path of the znode that was involved.
Trait Implementations
impl Clone for WatchedEvent
[src]
impl Clone for WatchedEvent
fn clone(&self) -> WatchedEvent
[src]
fn clone(&self) -> WatchedEvent
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Debug for WatchedEvent
[src]
impl Debug for WatchedEvent
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for WatchedEvent
[src]
impl PartialEq for WatchedEvent
fn eq(&self, other: &WatchedEvent) -> bool
[src]
fn eq(&self, other: &WatchedEvent) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &WatchedEvent) -> bool
[src]
fn ne(&self, other: &WatchedEvent) -> bool
This method tests for !=
.
impl Eq for WatchedEvent
[src]
impl Eq for WatchedEvent
Auto Trait Implementations
impl Send for WatchedEvent
impl Send for WatchedEvent
impl Sync for WatchedEvent
impl Sync for WatchedEvent