[−][src]Enum zookeeper::KeeperState
Enumeration of states the client may be at a Watcher Event. It represents the state of the server at the time the event was generated.
Variants
The client is in the disconnected state - it is not connected to any server in the ensemble.
The client is in the connected state - it is connected to a server in the ensemble (one of the servers specified in the host connection parameter during ZooKeeper client creation).
Authentication has failed -- connection requires a new ZooKeeper
instance.
The client is connected to a read-only server, that is the server which is not currently connected to the majority. The only operations allowed after receiving this state is read operations. This state is generated for read-only clients only since read/write clients aren't allowed to connect to read-only servers.
Used to notify clients that they are SASL-authenticated, so that they can perform ZooKeeper actions with their SASL-authorized permissions.
The serving cluster has expired this session. The ZooKeeper client connection (the session)
is no longer valid. You must create a new client connection (instantiate a new ZooKeeper
instance) if you with to access the ensemble.
Trait Implementations
impl Clone for KeeperState
[src]
fn clone(&self) -> KeeperState
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for KeeperState
[src]
impl Debug for KeeperState
[src]
impl From<i32> for KeeperState
[src]
fn from(val: i32) -> KeeperState
[src]
impl PartialEq<KeeperState> for KeeperState
[src]
fn eq(&self, other: &KeeperState) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl StructuralPartialEq for KeeperState
[src]
Auto Trait Implementations
impl RefUnwindSafe for KeeperState
impl Send for KeeperState
impl Sync for KeeperState
impl Unpin for KeeperState
impl UnwindSafe for KeeperState
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,