[][src]Enum rdms::Error

pub enum Error {
    NotImplemented,
    InvalidCAS,
    ConsecutiveReds,
    UnbalancedBlacks(usizeusize),
    SortError(StringString),
    DuplicateKey(String),
    DirtyNode,
    KeyNotFound,
    FailConversion(String),
    NotNativeValue,
    NotNativeDelta,
    KeySizeExceeded(usize),
    ValueSizeExceeded(usize),
    DiffSizeExceeded(usize),
    DecodeFail(String),
    PartialRead(String),
    PartialWrite(String),
    InvalidFile(String),
    IoError(Error),
    JsonError(Error),
    ThreadFail(String),
    EmptyIterator,
    InvalidSnapshot(String),
    Utf8Error(Utf8Error),
    IPCFail(String),
    InvalidWAL(String),
    InvalidBatch(String),
    __LessThan,
    __ZBlockOverflow(usize),
    __MBlockOverflow(usize),
    __MBlockExhausted(usize),
    __ZBlockExhausted(usize),
}

Error enumerates over all possible errors that this package shall return.

Variants

NotImplemented
InvalidCAS

Can be returned by set_cas() API when:

  • In non-lsm mode, requested entry is missing but specified CAS is not ZERO. Note that this combination is an alias for create-only operation.
  • In lsm mode, requested entry is marked as deleted, and specifed CAS is neither ZERO, nor matching with entry's last modified sequence-number.
  • Requested entry's last modified sequence-number does not match with specified CAS.
ConsecutiveReds

Fatal case, breaking one of the two LLRB rules.

UnbalancedBlacks(usizeusize)

Fatal case, breaking one of the two LLRB rules. The String component of this variant can be used for debugging. The first parameter in the tuple gives the number of blacks found on the left child, the second parameter gives for right child.

SortError(StringString)

Fatal case, index entries are not in sort-order. The two keys are the mismatching items.

DuplicateKey(String)

Duplicated keys are not allowed in the index. Each and every Key must be unique.

DirtyNode

Llrb and Mvcc index uses dirty node marker for newly created nodes in its mutation path.

KeyNotFound

Supplied key is not found in the index.

FailConversion(String)

Error converting one type to another type.

NotNativeValue

Expected a native value. TODO: hide this ?

NotNativeDelta

Expected a native delta. TODO: hide this ?

KeySizeExceeded(usize)

Key size, after serializing, exceeds limit.

ValueSizeExceeded(usize)

Value size, after serializing, exceeds limit.

DiffSizeExceeded(usize)

Value-diff size, after serializing, exceeds limit.

DecodeFail(String)

De-serialization failed.

PartialRead(String)

Unable to read expected bytes from file.

PartialWrite(String)

Unable to write full buffer into file.

InvalidFile(String)
IoError(Error)
JsonError(Error)
ThreadFail(String)
EmptyIterator
InvalidSnapshot(String)
Utf8Error(Utf8Error)
IPCFail(String)

Inter-Process-Communication error

InvalidWAL(String)

Invalid WAL

InvalidBatch(String)

Invalid batch in WAL, write-ahead-log.

__LessThan
__ZBlockOverflow(usize)
__MBlockOverflow(usize)
__MBlockExhausted(usize)
__ZBlockExhausted(usize)

Trait Implementations

impl From<Error> for Error[src]

impl From<OsString> for Error[src]

impl<T> From<SendError<T>> for Error[src]

impl From<RecvError> for Error[src]

impl From<Box<dyn Any + 'static + Send>> for Error[src]

impl From<Error> for Error[src]

impl From<Utf8Error> for Error[src]

impl PartialEq<Error> for Error[src]

impl Debug for Error[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

impl !RefUnwindSafe for Error

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[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.

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]