pub struct Stat {
pub czxid: i64,
pub mzxid: i64,
pub pzxid: i64,
pub ctime: i64,
pub mtime: i64,
pub version: i32,
pub cversion: i32,
pub aversion: i32,
pub ephemeral_owner: i64,
pub data_length: i32,
pub num_children: i32,
}
Expand description
ZooKeeper node stat.
Fields§
§czxid: i64
The zxid of the change that caused this znode to be created.
mzxid: i64
The zxid of the change that last modified this znode.
pzxid: i64
The zxid of the change that last modified children of this znode.
ctime: i64
The time in milliseconds from epoch when this znode was created.
mtime: i64
The time in milliseconds from epoch when this znode was last modified.
version: i32
The number of changes to the data of this znode.
cversion: i32
The number of changes to the children of this znode.
aversion: i32
The number of changes to the ACL of this znode.
ephemeral_owner: i64
The session id of the owner of this znode if the znode is an ephemeral node. If it is not an ephemeral node, it will be zero.
data_length: i32
The length of the data field of this znode.
num_children: i32
The number of children of this znode.
Implementations§
Source§impl Stat
impl Stat
Sourcepub fn is_invalid(&self) -> bool
pub fn is_invalid(&self) -> bool
Tests whether this stat is invalid.
This method is exported to circumvent bugs in ZooKeeper server. See ZOOKEEPER-4026 and ZOOKEEPER-4667 for reference.
Trait Implementations§
impl Copy for Stat
impl Eq for Stat
impl StructuralPartialEq for Stat
Auto Trait Implementations§
impl Freeze for Stat
impl RefUnwindSafe for Stat
impl Send for Stat
impl Sync for Stat
impl Unpin for Stat
impl UnwindSafe for Stat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more