[][src]Enum zookeeper_async::ZkState

pub enum ZkState {
    Associating,
    AuthFailed,
    Closed,
    Connected,
    ConnectedReadOnly,
    Connecting,
    NotConnected,
}

Enumeration of states the client may be at any time.

Variants

Associating
👎 Deprecated

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
👎 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]

impl Copy for ZkState[src]

impl Debug for ZkState[src]

impl Display for ZkState[src]

impl PartialEq<ZkState> for ZkState[src]

impl StructuralPartialEq for ZkState[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.