pub enum WatchedEventType {
None = -1,
NodeCreated = 1,
NodeDeleted = 2,
NodeDataChanged = 3,
NodeChildrenChanged = 4,
DataWatchRemoved = 5,
ChildWatchRemoved = 6,
}
Expand description
Enumeration of types of events that may occur on the znode.
Variants§
None = -1
Nothing known has occurred on the znode. This value is issued as part of a WatchedEvent
when the KeeperState
changes.
NodeCreated = 1
Issued when a znode at a given path is created.
NodeDeleted = 2
Issued when a znode at a given path is deleted.
NodeDataChanged = 3
Issued when the data of a watched znode are altered. This event value is issued whenever a set operation occurs without an actual contents check, so there is no guarantee the data actually changed.
NodeChildrenChanged = 4
Issued when the children of a watched znode are created or deleted. This event is not issued when the data within children is altered.
DataWatchRemoved = 5
Issued when the client removes a data watcher.
ChildWatchRemoved = 6
Issued when the client removes a child watcher.
Trait Implementations§
Source§impl Clone for WatchedEventType
impl Clone for WatchedEventType
Source§fn clone(&self) -> WatchedEventType
fn clone(&self) -> WatchedEventType
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 moreSource§impl Debug for WatchedEventType
impl Debug for WatchedEventType
Source§impl From<i32> for WatchedEventType
impl From<i32> for WatchedEventType
Source§fn from(val: i32) -> WatchedEventType
fn from(val: i32) -> WatchedEventType
Converts to this type from the input type.
Source§impl PartialEq for WatchedEventType
impl PartialEq for WatchedEventType
impl Copy for WatchedEventType
impl Eq for WatchedEventType
impl StructuralPartialEq for WatchedEventType
Auto Trait Implementations§
impl Freeze for WatchedEventType
impl RefUnwindSafe for WatchedEventType
impl Send for WatchedEventType
impl Sync for WatchedEventType
impl Unpin for WatchedEventType
impl UnwindSafe for WatchedEventType
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