Enum aerospike::ResultCode
source · pub enum ResultCode {
Show 63 variants
Ok,
ServerError,
KeyNotFoundError,
GenerationError,
ParameterError,
KeyExistsError,
BinExistsError,
ClusterKeyMismatch,
ServerMemError,
Timeout,
NoXds,
ServerNotAvailable,
BinTypeError,
RecordTooBig,
KeyBusy,
ScanAbort,
UnsupportedFeature,
BinNotFound,
DeviceOverload,
KeyMismatch,
InvalidNamespace,
BinNameTooLong,
FailForbidden,
ElementNotFound,
ElementExists,
EnterpriseOnly,
QueryEnd,
SecurityNotSupported,
SecurityNotEnabled,
SecuritySchemeNotSupported,
InvalidCommand,
InvalidField,
IllegalState,
InvalidUser,
UserAlreadyExists,
InvalidPassword,
ExpiredPassword,
ForbiddenPassword,
InvalidCredential,
InvalidRole,
RoleAlreadyExists,
InvalidPrivilege,
NotAuthenticated,
RoleViolation,
UdfBadResponse,
LargeItemNotFound,
BatchDisabled,
BatchMaxRequestsExceeded,
BatchQueuesFull,
IndexFound,
IndexNotFound,
IndexOom,
IndexNotReadable,
IndexGeneric,
IndexNameMaxLen,
IndexMaxCount,
QueryAborted,
QueryQueueFull,
QueryTimeout,
QueryGeneric,
QueryNetioErr,
QueryDuplicate,
Unknown(u8),
}
Expand description
Database operation error codes. The error codes are defined in the server-side file proto.h.
Variants§
Ok
OperationType was successful.
ServerError
Unknown server failure.
KeyNotFoundError
On retrieving, touching or replacing a record that doesn’t exist.
GenerationError
On modifying a record with unexpected generation.
ParameterError
Bad parameter(s) were passed in database operation call.
KeyExistsError
On create-only (write unique) operations on a record that already exists.
BinExistsError
On create-only (write unique) operations on a bin that already exists.
ClusterKeyMismatch
Expected cluster Id was not received.
ServerMemError
Server has run out of memory.
Timeout
Client or server has timed out.
NoXds
Xds product is not available.
ServerNotAvailable
Server is not accepting requests.
BinTypeError
OperationType is not supported with configured bin type (single-bin or multi-bin).
RecordTooBig
Record size exceeds limit.
KeyBusy
Too many concurrent operations on the same record.
ScanAbort
Scan aborted by server.
UnsupportedFeature
Unsupported Server Feature (e.g. Scan + Udf)
BinNotFound
Specified bin name does not exist in record.
DeviceOverload
Specified bin name does not exist in record.
KeyMismatch
Key type mismatch.
InvalidNamespace
Invalid namespace.
BinNameTooLong
Bin name length greater than 14 characters.
FailForbidden
OperationType not allowed at this time.
ElementNotFound
Returned by Map put and put_items operations when policy is REPLACE but key was not found.
ElementExists
Returned by Map put and put_items operations when policy is CREATE_ONLY but key already exists.
EnterpriseOnly
Enterprise-only feature not supported by the community edition
QueryEnd
There are no more records left for query.
SecurityNotSupported
Security type not supported by connected server.
SecurityNotEnabled
Administration command is invalid.
SecuritySchemeNotSupported
Administration field is invalid.
InvalidCommand
Administration command is invalid.
InvalidField
Administration field is invalid.
IllegalState
Security protocol not followed.
InvalidUser
User name is invalid.
UserAlreadyExists
User was previously created.
InvalidPassword
Password is invalid.
ExpiredPassword
Security credential is invalid.
ForbiddenPassword
Forbidden password (e.g. recently used)
InvalidCredential
Security credential is invalid.
InvalidRole
Role name is invalid.
RoleAlreadyExists
Role already exists.
InvalidPrivilege
Privilege is invalid.
NotAuthenticated
User must be authentication before performing database operations.
RoleViolation
User does not posses the required role to perform the database operation.
UdfBadResponse
A user defined function returned an error code.
LargeItemNotFound
The requested item in a large collection was not found.
BatchDisabled
Batch functionality has been disabled.
BatchMaxRequestsExceeded
Batch max requests have been exceeded.
BatchQueuesFull
All batch queues are full.
IndexFound
Secondary index already exists.
IndexNotFound
Requested secondary index does not exist.
IndexOom
Secondary index memory space exceeded.
IndexNotReadable
Secondary index not available.
IndexGeneric
Generic secondary index error.
IndexNameMaxLen
Index name maximum length exceeded.
IndexMaxCount
Maximum number of indicies exceeded.
QueryAborted
Secondary index query aborted.
QueryQueueFull
Secondary index queue full.
QueryTimeout
Secondary index query timed out on server.
QueryGeneric
Generic query error.
QueryNetioErr
Query NetIo error on server
QueryDuplicate
Duplicate TaskId sent for the statement
Unknown(u8)
Unknown server result code
Implementations§
source§impl ResultCode
impl ResultCode
sourcepub fn into_string(self) -> String
pub fn into_string(self) -> String
Convert a result code into an string.
Trait Implementations§
source§impl Clone for ResultCode
impl Clone for ResultCode
source§fn clone(&self) -> ResultCode
fn clone(&self) -> ResultCode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ResultCode
impl Debug for ResultCode
source§impl Display for ResultCode
impl Display for ResultCode
source§impl From<ResultCode> for String
impl From<ResultCode> for String
source§fn from(code: ResultCode) -> String
fn from(code: ResultCode) -> String
source§impl From<u8> for ResultCode
impl From<u8> for ResultCode
source§fn from(val: u8) -> ResultCode
fn from(val: u8) -> ResultCode
source§impl PartialEq<ResultCode> for ResultCode
impl PartialEq<ResultCode> for ResultCode
source§fn eq(&self, other: &ResultCode) -> bool
fn eq(&self, other: &ResultCode) -> bool
self
and other
values to be equal, and is used
by ==
.