pub enum CatalogError {
WrongKey,
UnknownSchema(i64),
Sqlite(Error),
Io(Error),
Access {
path: PathBuf,
error: Error,
},
}Expand description
Why a catalog did not open.
Variants§
WrongKey
The key is not the one the catalog was made with.
UnknownSchema(i64)
The catalog’s schema version is not one this build knows.
Sqlite(Error)
SQLite failed.
Io(Error)
A file around the catalog could not be read, written or renamed.
Access
This process may not read and write path, the catalog or the
directory that holds it (where SQLite makes its -wal and -shm
files), such as when another user owns it.
Trait Implementations§
Source§impl Debug for CatalogError
impl Debug for CatalogError
Source§impl From<CatalogError> for OpenError
impl From<CatalogError> for OpenError
Source§fn from(e: CatalogError) -> OpenError
fn from(e: CatalogError) -> OpenError
Converts to this type from the input type.
Source§impl From<Error> for CatalogError
impl From<Error> for CatalogError
Source§fn from(e: Error) -> CatalogError
fn from(e: Error) -> CatalogError
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for CatalogError
impl !UnwindSafe for CatalogError
impl Freeze for CatalogError
impl Send for CatalogError
impl Sync for CatalogError
impl Unpin for CatalogError
impl UnsafeUnpin for CatalogError
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