#[non_exhaustive]pub enum StorageProblem {
DiskFull,
ReadOnlyFilesystem,
DeviceNotReady,
SharingViolation,
LockedOrBusy,
FileMissing,
Other,
}Expand description
Why storage is unavailable. None of these ever leads to quarantine.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
DiskFull
ENOSPC, EDQUOT, SQLITE_FULL, Windows ERROR_DISK_FULL/ERROR_HANDLE_DISK_FULL.
ReadOnlyFilesystem
EROFS, SQLITE_READONLY, Windows ERROR_WRITE_PROTECT.
DeviceNotReady
ENXIO, ENODEV, ENOMEDIUM, ESTALE, ENOTCONN, ENETDOWN, ENETUNREACH,
EHOSTUNREACH, ETIMEDOUT; Windows ERROR_NOT_READY, ERROR_DEV_NOT_EXIST,
ERROR_DEVICE_NOT_CONNECTED, ERROR_BAD_NETPATH, ERROR_NETNAME_DELETED,
ERROR_UNEXP_NET_ERR, ERROR_NETWORK_UNREACHABLE.
SharingViolation
Windows ERROR_SHARING_VIOLATION and ERROR_LOCK_VIOLATION.
LockedOrBusy
EBUSY, ETXTBSY, EAGAIN, EDEADLK; SQLITE_BUSY, SQLITE_LOCKED, the
SQLITE_IOERR_*LOCK family and SQLITE_PROTOCOL.
FileMissing
The file is not there; there is nothing to set aside.
Other
Anything else that is not a read failure of this file: a write-side I/O error, EMFILE,
out of memory, a directory where the file should be, or a file this process can read
but SQLite could not open.