#[repr(i32)]pub enum KeeperState {
Disconnected = 0,
SyncConnected = 3,
AuthFailed = 4,
ConnectedReadOnly = 5,
SaslAuthenticated = 6,
Expired = -112,
}
Expand description
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§
Disconnected = 0
The client is in the disconnected state - it is not connected to any server in the ensemble.
SyncConnected = 3
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).
AuthFailed = 4
Authentication has failed – connection requires a new ZooKeeper
instance.
ConnectedReadOnly = 5
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.
SaslAuthenticated = 6
Used to notify clients that they are SASL-authenticated, so that they can perform ZooKeeper actions with their SASL-authorized permissions.
Expired = -112
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§
Source§impl Clone for KeeperState
impl Clone for KeeperState
Source§fn clone(&self) -> KeeperState
fn clone(&self) -> KeeperState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more