pub enum InitError {
Invalid,
InvalidVersion,
Io(Error),
Corrupt,
ShuttingDown,
Unknown(Box<dyn Error + Send + Sync + 'static>),
}
Expand description
Variants§
Invalid
The given Path/File
existed and was accessible,
but was not a valid database file.
InvalidVersion
The given Path/File
existed, was a valid
database, but the version is incorrect.
Io(Error)
I/O error.
Corrupt
The given Path/File
existed,
was a valid database, but it is corrupt.
ShuttingDown
The database is currently in the process of shutting down and cannot respond.
§Notes
This error can only occur with the heed
backend when
the database environment is opened right at the same time
another thread/process is closing it.
This will never occur with other backends.
Unknown(Box<dyn Error + Send + Sync + 'static>)
An unknown error occurred.
This is for errors that cannot be recovered from, but we’d still like to panic gracefully.
Trait Implementations§
Source§impl Error for InitError
impl Error for InitError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Auto Trait Implementations§
impl Freeze for InitError
impl !RefUnwindSafe for InitError
impl Send for InitError
impl Sync for InitError
impl Unpin for InitError
impl !UnwindSafe for InitError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 24 bytes
Size for each variant:
Invalid
: 0 bytesInvalidVersion
: 0 bytesIo
: 8 bytesCorrupt
: 0 bytesShuttingDown
: 0 bytesUnknown
: 16 bytes