pub enum BootstrapDirectoryError {
Create(DirectoryCreationError),
Lock(StoreLockError),
File(FileError),
Settings {
store: StoreId,
source: SettingsError,
},
Bug(Bug),
}Expand description
Filesystem failures while reserving, publishing or cancelling a new device.
Variants§
Create(DirectoryCreationError)
A store already exists or preparing its directory failed.
Lock(StoreLockError)
Another bootstrap or an open database prevents this operation.
File(FileError)
A filesystem operation failed.
Settings
An unfinished first installation’s settings can’t be read: missing, corrupt, another store’s, or not a regular file. Nothing of it can be resumed or listed until the person discards it.
Fields
source: SettingsErrorWhy its settings can’t be read.
Bug(Bug)
The work panicked on the blocking pool: a bug, which the caller reports (E15).
Implementations§
Source§impl BootstrapDirectoryError
impl BootstrapDirectoryError
Sourcepub fn device_locked(&self) -> Option<&Path>
pub fn device_locked(&self) -> Option<&Path>
The protected file the lock refused, when the device is locked and the store’s chosen class keeps its files closed (api.md E1).
Sourcepub fn published_unsynced(&self) -> bool
pub fn published_unsynced(&self) -> bool
The store is already visible, and only syncing its parent directory failed.
Trait Implementations§
Source§impl CarriesBug for BootstrapDirectoryError
impl CarriesBug for BootstrapDirectoryError
Source§impl Debug for BootstrapDirectoryError
impl Debug for BootstrapDirectoryError
Source§impl Display for BootstrapDirectoryError
impl Display for BootstrapDirectoryError
Source§impl Error for BootstrapDirectoryError
impl Error for BootstrapDirectoryError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()