Enum zookeeper_async::ZkState [−][src]
pub enum ZkState {
Associating,
AuthFailed,
Closed,
Connected,
ConnectedReadOnly,
Connecting,
NotConnected,
}
Expand description
Enumeration of states the client may be at any time.
Variants
Previously used to represent a state between connection (as in connected to a server) and authenticated. This is no longer used.
Authentication has failed. Operations will return ZkError::AuthFailed
.
The session has ended. Operations will return ZkError::SessionExpired
.
Session has been fully established. Operations will proceed as normal.
Connected to a read-only server. See KeeperState::ConnectedReadOnly
.
Currently attempting to connect with an ensemble member. Operations are queued until a session is established.
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
Auto Trait Implementations
impl RefUnwindSafe for ZkState
impl UnwindSafe for ZkState
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more