Enum lmdb_zero::error::Error [] [src]

pub enum Error {
    Code(c_int),
    NulStr,
    Reopened,
    Mismatch,
    ValRejected(String),
    // some variants omitted
}

Error type returned by LMDB.

Variants

A basic error code returned by LMDB.

The code is generally expected to be a constant defined in the errors module if negative, or a raw platform error code if positive.

A string path was given which contains a NUL byte.

An attempt was made to open a database which is already open.

An attempt was made to use two items together which cannot be used together.

For example, trying to use a cursor from one transaction to access data in another.

A value conversion was rejected. A message explaining why is included.

Trait Implementations

impl Clone for Error
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for Error
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Error
[src]

impl Hash for Error
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.

impl Debug for Error
[src]

Formats the value using the given formatter.

impl Display for Error
[src]

Formats the value using the given formatter.

impl StdError for Error
[src]

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<NulError> for Error
[src]

Performs the conversion.