[][src]Enum zookeeper_async::ZkError

#[repr(i32)]pub enum ZkError {
    APIError,
    AuthFailed,
    BadArguments,
    BadVersion,
    ConnectionLoss,
    DataInconsistency,
    EphemeralOnLocalSession,
    InvalidACL,
    InvalidCallback,
    MarshallingError,
    NoAuth,
    NoChildrenForEphemerals,
    NodeExists,
    NoNode,
    NotEmpty,
    NotReadOnly,
    NoWatcher,
    OperationTimeout,
    RuntimeInconsistency,
    SessionExpired,
    SessionMoved,
    SystemError,
    Unimplemented,
}

Basic type for errors returned from the server.

Variants

APIError

This code is never returned from the server. It should not be used other than to indicate a range. Specifically error codes greater than this value are API errors (while values less than this indicate a system error).

AuthFailed

Client authentication failed.

BadArguments

Invalid arguments.

BadVersion

Version conflict in set operation. In case of reconfiguration: reconfig requested from config version X but last seen config has a different version Y.

ConnectionLoss

Connection to the server has been lost.

DataInconsistency

A data inconsistency was found.

EphemeralOnLocalSession

Attempt to create ephemeral node on a local session.

InvalidACL

Invalid Acl specified.

InvalidCallback

Invalid callback specified.

MarshallingError

Error while marshalling or unmarshalling data.

NoAuth

Not authenticated.

NoChildrenForEphemerals

Ephemeral nodes may not have children.

NodeExists

Request to create node that already exists.

NoNode

Attempted to read a node that does not exist.

NotEmpty

The node has children.

NotReadOnly

State-changing request is passed to read-only server.

NoWatcher

Attempt to remove a non-existing watcher.

OperationTimeout

Operation timeout.

RuntimeInconsistency

A runtime inconsistency was found.

SessionExpired

The session has been expired by the server.

SessionMoved

Session moved to another server, so operation is ignored.

SystemError

System and server-side errors. This is never thrown by the server, it shouldn't be used other than to indicate a range. Specifically error codes greater than this value, but lesser than APIError, are system errors.

Unimplemented

Operation is unimplemented.

Trait Implementations

impl Clone for ZkError[src]

impl Copy for ZkError[src]

impl Debug for ZkError[src]

impl Display for ZkError[src]

impl Eq for ZkError[src]

impl Error for ZkError[src]

impl From<i32> for ZkError[src]

impl FromPrimitive for ZkError[src]

type Primitive = i32

impl Hash for ZkError[src]

impl Ord for ZkError[src]

impl PartialEq<ZkError> for ZkError[src]

impl PartialOrd<ZkError> for ZkError[src]

impl StructuralEq for ZkError[src]

impl StructuralPartialEq for ZkError[src]

impl TryFromPrimitive for ZkError[src]

type Primitive = i32

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.