pub enum ZkState {
Associating,
AuthFailed,
Closed,
Connected,
ConnectedReadOnly,
Connecting,
NotConnected,
}
Expand description
Enumeration of states the client may be at any time.
Variants§
Associating
Previously used to represent a state between connection (as in connected to a server) and authenticated. This is no longer used.
AuthFailed
Authentication has failed. Operations will return ZkError::AuthFailed
.
Closed
The session has ended. Operations will return ZkError::SessionExpired
.
Connected
Session has been fully established. Operations will proceed as normal.
ConnectedReadOnly
Connected to a read-only server. See KeeperState::ConnectedReadOnly
.
Connecting
Currently attempting to connect with an ensemble member. Operations are queued until a session is established.
NotConnected
Theoretically used as a special state to represent ZkError::ConnectionLoss
for expected
reasons (ensemble reconfiguration), but Closed
has proven less error-prone. This is no
longer used.