Enum grebedb::error::Error[][src]

pub enum Error {
    CompressionUnavailable,
    FileLockingUnavailable,
    InvalidConfig {
        message: &'static str,
    },
    BadChecksum {
        path: String,
    },
    InvalidFileFormat {
        path: String,
        message: &'static str,
    },
    InvalidMetadata {
        message: &'static str,
    },
    InvalidPageData {
        page: u64,
        message: &'static str,
    },
    LimitExceeded,
    Closed,
    Locked,
    ReadOnly,
    Io(Error),
    Other(Box<dyn Error + Send + Sync>),
}

Error type returned by database operations.

Variants

CompressionUnavailable

Support for compression is not available due to a disabled feature.

FileLockingUnavailable

Support for file locking is not available due to a disabled feature.

InvalidConfig

Provided configuration is invalid.

Fields of InvalidConfig

message: &'static str

Custom message.

BadChecksum

A calculated checksum does not match.

Fields of BadChecksum

path: String

Path to file with bad checksum.

InvalidFileFormat

A file is not format correctly.

Fields of InvalidFileFormat

path: String

Path to file.

message: &'static str

Custom message.

InvalidMetadata

The metadata file contains invalid data.

Fields of InvalidMetadata

message: &'static str

Custom message.

InvalidPageData

A page file contains invalid data.

Fields of InvalidPageData

page: u64

Page ID.

message: &'static str

Custom message

LimitExceeded

An execution or resource limit was exceeded.

This error occurs if the tree is corrupted in such a way that it causes infinite loops.

Closed

Database is closed.

This occurs if the database experienced an error and will refuse to process future operations to prevent further corruption.

Locked

Database is locked.

Another process has locked the database for reading/writing.

ReadOnly

A modification to a database opened in read-only mode was requested.

Io(Error)

Other std IO error.

Other(Box<dyn Error + Send + Sync>)

Other internal errors.

Trait Implementations

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl From<Error> for Error[src]

impl From<VfsError> for Error[src]

Auto Trait Implementations

impl !RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

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> From<T> for T[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[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.