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

Deprecated

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.

Deprecated

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]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for ZkState
[src]

impl Debug for ZkState
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for ZkState
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

Auto Trait Implementations

impl Send for ZkState

impl Sync for ZkState