Enum zookeeper_async::ZkError [−][src]
#[repr(i32)]
pub enum ZkError {
Show 23 variants
APIError,
AuthFailed,
BadArguments,
BadVersion,
ConnectionLoss,
DataInconsistency,
EphemeralOnLocalSession,
InvalidACL,
InvalidCallback,
MarshallingError,
NoAuth,
NoChildrenForEphemerals,
NodeExists,
NoNode,
NotEmpty,
NotReadOnly,
NoWatcher,
OperationTimeout,
RuntimeInconsistency,
SessionExpired,
SessionMoved,
SystemError,
Unimplemented,
}
Expand description
Basic type for errors returned from the server.
Variants
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).
Client authentication failed.
Invalid arguments.
Version conflict in set
operation. In case of reconfiguration: reconfig requested from
config version X but last seen config has a different version Y.
Connection to the server has been lost.
A data inconsistency was found.
Attempt to create ephemeral node on a local session.
Invalid Acl
specified.
Invalid callback specified.
Error while marshalling or unmarshalling data.
Not authenticated.
Ephemeral nodes may not have children.
Request to create node that already exists.
Attempted to read a node that does not exist.
The node has children.
State-changing request is passed to read-only server.
Attempt to remove a non-existing watcher.
Operation timeout.
A runtime inconsistency was found.
The session has been expired by the server.
Session moved to another server, so operation is ignored.
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.
Operation is unimplemented.
Trait Implementations
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ZkError
impl UnwindSafe for ZkError
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