Enum gnudbm::Error
[−]
[src]
pub enum Error { InvalidPath, KeyExists, NoRecord, Bincode(BincodeError), Internal(GdbmError), }
An error when interacting with a database.
Variants
InvalidPath
The path was not a valid C String.
KeyExists
The key passed to store_safe
existed in the database.
NoRecord
No item with this key exists in the database.
Bincode(BincodeError)
An error occured while encoding to or decoding from binary.
Internal(GdbmError)
An error originating in the gdbm C library.
Methods
impl Error
[src]
fn is_no_record(&self) -> bool
[src]
Returns true
iff self
is the NoRecord
enum member.