[][src]Enum aerospike::ResultCode

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]

pub fn into_string(self) -> String[src]

Convert a result code into an string.

Trait Implementations

impl From<u8> for ResultCode[src]

impl From<ResultCode> for String[src]

impl Clone for ResultCode[src]

impl Copy for ResultCode[src]

impl PartialEq<ResultCode> for ResultCode[src]

impl Debug for ResultCode[src]

impl Display for ResultCode[src]

impl StructuralPartialEq for ResultCode[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From<T> 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 = !

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.

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

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

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,