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
Code(c_int)
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.
NulStr
A string path was given which contains a NUL
byte.
Reopened
An attempt was made to open a database which is already open.
Mismatch
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.
ValRejected(String)
A value conversion was rejected. A message explaining why is included.
Trait Implementations
impl Clone for Error
[src]
fn clone(&self) -> Error
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl PartialEq for Error
[src]
fn eq(&self, __arg_0: &Error) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Error) -> bool
This method tests for !=
.
impl Eq for Error
[src]
impl Hash for Error
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Debug for Error
[src]
impl Display for Error
[src]
impl StdError for Error
[src]
fn description(&self) -> &str
A short description of the error. Read more
fn cause(&self) -> Option<&Error>
1.0.0
The lower-level cause of this error, if any. Read more