pub enum TableConnectError {
Permissions(Error),
Inaccessible(PathBuf, Error),
IsDirectory(PathBuf, Vec<PathHint>),
MissingBackupDatabase(PathBuf, Vec<PathHint>),
NotADatabase(PathBuf),
NotMessagesDatabase(PathBuf),
DoesNotExist(PathBuf, Vec<PathHint>),
NotBackupRoot,
}Expand description
Reasons why the database could not be connected to or read from
Variants§
Permissions(Error)
Failure to open the file with SQLite
Inaccessible(PathBuf, Error)
Failure to inspect or open the path: missing Full Disk Access on macOS, or a path that cannot be parsed by the OS
IsDirectory(PathBuf, Vec<PathHint>)
Directory supplied in place of a database file, with hints from its contents
MissingBackupDatabase(PathBuf, Vec<PathHint>)
Directory with no Messages database at the iOS backup path, with hints from its contents
NotADatabase(PathBuf)
File without the SQLite header
NotMessagesDatabase(PathBuf)
SQLite database without a message table
DoesNotExist(PathBuf, Vec<PathHint>)
Missing path, with hints from the nearest existing ancestor
NotBackupRoot
Not a backup root directory
Trait Implementations§
Source§impl Debug for TableConnectError
impl Debug for TableConnectError
Source§impl Display for TableConnectError
impl Display for TableConnectError
Source§impl Error for TableConnectError
impl Error for TableConnectError
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()
Auto Trait Implementations§
impl !RefUnwindSafe for TableConnectError
impl !UnwindSafe for TableConnectError
impl Freeze for TableConnectError
impl Send for TableConnectError
impl Sync for TableConnectError
impl Unpin for TableConnectError
impl UnsafeUnpin for TableConnectError
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