#[non_exhaustive]pub enum UnreadableCause {
PermissionDenied,
IoReadFailure,
StorageUnavailable(StorageProblem),
}Expand description
Why a database could not be read.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
PermissionDenied
The operating system refused to let this process read the file.
IoReadFailure
The operating system or SQLite reported a read error (EIO, a short read, a bad sector).
The storage itself is unavailable; the file may be perfectly healthy.
Implementations§
Source§impl UnreadableCause
impl UnreadableCause
Sourcepub fn counts_toward_quarantine(self) -> bool
pub fn counts_toward_quarantine(self) -> bool
True for the causes that count toward UnreadablePolicy::QuarantineAfter.
Trait Implementations§
Source§impl Clone for UnreadableCause
impl Clone for UnreadableCause
impl Copy for UnreadableCause
Source§impl Debug for UnreadableCause
impl Debug for UnreadableCause
Source§impl Display for UnreadableCause
impl Display for UnreadableCause
impl Eq for UnreadableCause
Source§impl PartialEq for UnreadableCause
impl PartialEq for UnreadableCause
impl StructuralPartialEq for UnreadableCause
Auto Trait Implementations§
impl Freeze for UnreadableCause
impl RefUnwindSafe for UnreadableCause
impl Send for UnreadableCause
impl Sync for UnreadableCause
impl Unpin for UnreadableCause
impl UnsafeUnpin for UnreadableCause
impl UnwindSafe for UnreadableCause
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