Enum aerospike::ResultCode
[−]
[src]
pub enum ResultCode { 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), }
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
Methods
impl ResultCode
[src]
fn into_string(self) -> String
[src]
Convert a result code into an string.
Trait Implementations
impl Debug for ResultCode
[src]
impl Clone for ResultCode
[src]
fn clone(&self) -> ResultCode
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for ResultCode
[src]
impl PartialEq for ResultCode
[src]
fn eq(&self, __arg_0: &ResultCode) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ResultCode) -> bool
[src]
This method tests for !=
.
impl From<u8> for ResultCode
[src]
fn from(val: u8) -> ResultCode
[src]
Performs the conversion.