pub enum OpenError {
Database(DbError),
Migration(MigrationError),
CovenMigration(CovenMigrationError),
Settings(SettingsError),
Lock(StoreLockError),
MissingConfiguration {
field: &'static str,
},
Bug(Bug),
}Expand description
Opening the database failed: its writer or read-only connections, its lock, its settings or its migrations (§4, E1, E13).
Variants§
Database(DbError)
The database failed.
Migration(MigrationError)
An app migration failed or cannot run on this schema.
CovenMigration(CovenMigrationError)
Coven’s internal schema is unsupported or its migration cannot run.
Settings(SettingsError)
The directory’s settings could not be read.
Lock(StoreLockError)
The store’s lock could not be taken.
MissingConfiguration
A required builder choice was not supplied (E1).
Bug(Bug)
Taking the store’s lock panicked: a bug, which the caller reports
(E15). Opening’s database work that panicked is DbError::Bug.
Trait Implementations§
Source§impl CarriesBug for OpenError
impl CarriesBug for OpenError
Source§impl Error for OpenError
impl Error for OpenError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<CovenMigrationError> for OpenError
impl From<CovenMigrationError> for OpenError
Source§fn from(source: CovenMigrationError) -> Self
fn from(source: CovenMigrationError) -> Self
Converts to this type from the input type.
Source§impl From<MigrationError> for OpenError
impl From<MigrationError> for OpenError
Source§fn from(source: MigrationError) -> Self
fn from(source: MigrationError) -> Self
Converts to this type from the input type.
Source§impl From<SettingsError> for OpenError
impl From<SettingsError> for OpenError
Source§fn from(error: SettingsError) -> Self
fn from(error: SettingsError) -> Self
Converts to this type from the input type.
Source§impl From<StoreLockError> for OpenError
impl From<StoreLockError> for OpenError
Source§fn from(error: StoreLockError) -> Self
fn from(error: StoreLockError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for OpenError
impl !RefUnwindSafe for OpenError
impl Send for OpenError
impl Sync for OpenError
impl Unpin for OpenError
impl UnsafeUnpin for OpenError
impl !UnwindSafe for OpenError
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
Mutably borrows from an owned value. Read more