[][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),
    Validation(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

Validation(String)

Record validation errors, eg. magic byte check

Other

Other error

Trait Implementations

impl Clone for Kind[src]

impl Debug for Kind[src]

impl From<Kind> for Error[src]

impl PartialEq<Kind> for Kind[src]

impl StructuralPartialEq for Kind[src]

Auto Trait Implementations

impl RefUnwindSafe for Kind

impl Send for Kind

impl Sync for Kind

impl Unpin for Kind

impl UnwindSafe for Kind

Blanket Implementations

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

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

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

impl<T> Conv for T

impl<T> FmtForward for T

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

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

impl<T> Pipe for T

impl<T> PipeAsRef for T

impl<T> PipeBorrow for T

impl<T> PipeDeref for T

impl<T> PipeRef for T

impl<T> Tap for T

impl<T, U> TapAsRef<U> for T where
    U: ?Sized

impl<T, U> TapBorrow<U> for T where
    U: ?Sized

impl<T> TapDeref for T

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> TryConv for T

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