Enum zookeeper::ZkState
[−]
[src]
pub enum ZkState { Associating, AuthFailed, Closed, Connected, ConnectedReadOnly, Connecting, NotConnected, }
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.
Trait Implementations
impl Clone for ZkState
[src]
fn clone(&self) -> ZkState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more