pub enum Error {
SqlError(Error),
InvalidSchema,
IntegrityCheck,
Unsupported,
}Expand description
Error type that indicates that a container operation has failed.
Container operations are generally infallible. However, because our containers are backed by SQLite databases, they may still fail due to an internal SQLite error. Such errors can indicate a bug, but may also occur in out-of-memory situations.
Variants§
SqlError(Error)
Indicates that the operation failed because of an SQLite error; wraps the underlying RusqliteError.
InvalidSchema
An attempt was made to open an existing container (database), but the existing database schema is incompatible.
IntegrityCheck
The integrity check for the file-based container (database) file has failed. Take care!
Unsupported
An attempt was made to use a feature that is not supported by this build of sqlite-containers.
Implementations§
Source§impl Error
impl Error
Sourcepub fn into_inner(self) -> Option<RusqliteError>
pub fn into_inner(self) -> Option<RusqliteError>
Returns the wrapped RusqliteError, if this Error originates from SQLite; otherwise None is returned.