Enum grebedb::error::Error [−][src]
pub enum Error {}Show variants
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>),
Expand description
Error type returned by database operations.
Variants
Support for compression is not available due to a disabled feature.
Support for file locking is not available due to a disabled feature.
Provided configuration is invalid.
Show fields
Fields of InvalidConfig
message: &'static str
Custom message.
A calculated checksum does not match.
Show fields
Fields of BadChecksum
path: String
Path to file with bad checksum.
A file contained unexpected data or is not a database file.
Show fields
The metadata file contains invalid data.
Show fields
Fields of InvalidMetadata
message: &'static str
Custom message.
A page file contains invalid data.
An execution or resource limit was exceeded.
This error occurs if the tree is corrupted in such a way that it causes infinite loops.
Database is closed.
This occurs if the database experienced an error and will refuse to process future operations to prevent further corruption.
Database is locked.
Another process has locked the database for reading/writing.
A modification to a database opened in read-only mode was requested.
Io(Error)
Other std IO error.
Other internal errors.
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error