[][src]Enum pearl::ErrorKind

pub enum ErrorKind {
    ActiveBlobNotSet,
    WrongConfig,
    Uninitialized,
    RecordNotFound,
    WorkDirInUse,
    KeySizeMismatch,
    RecordExists,
    EmptyIndexBunch,
    Index(String),
    Bincode(String),
    IO(String),
    WrongFileNamePattern(PathBuf),
    Conversion(String),
    Other,
}

A list specifying categories of Storage error.

Variants

ActiveBlobNotSet

Active blob not set, often initialization failed.

WrongConfig

Input configuration is wrong.

Uninitialized

Probably storage initialization failed.

RecordNotFound

Record not found

WorkDirInUse

Work directory is locked by another storage. Or the operation lacked the necessary privileges to complete. Stop another storage or delete *.lock file

KeySizeMismatch

Storage was initialized with different key size

RecordExists

Record with the same key and the same metadata already exists

EmptyIndexBunch

Any error not part of this list

Index(String)

Index error

Bincode(String)

Bincode serialization deserialization error

IO(String)

std::io::Error

WrongFileNamePattern(PathBuf)

Wrong file name pattern in config

Conversion(String)

Conversion error

Other

Other error

Trait Implementations

impl From<Kind> for Error[src]

impl Clone for Kind[src]

impl PartialEq<Kind> for Kind[src]

impl Debug for Kind[src]

impl StructuralPartialEq for Kind[src]

Auto Trait Implementations

impl Send for Kind

impl Sync for Kind

impl Unpin for Kind

impl UnwindSafe for Kind

impl RefUnwindSafe for Kind

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<V, T> VZip<V> for T where
    V: MultiLane<T>,