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()
Source§impl From<BootstrapDirectoryError> for BootstrapError
impl From<BootstrapDirectoryError> for BootstrapError
Source§fn from(error: BootstrapDirectoryError) -> Self
fn from(error: BootstrapDirectoryError) -> Self
Source§impl From<BootstrapDirectoryError> for StoreCreationError
impl From<BootstrapDirectoryError> for StoreCreationError
Source§fn from(error: BootstrapDirectoryError) -> Self
fn from(error: BootstrapDirectoryError) -> Self
Source§impl From<Bug> for BootstrapDirectoryError
impl From<Bug> for BootstrapDirectoryError
Source§fn from(source: Bug) -> BootstrapDirectoryError
fn from(source: Bug) -> BootstrapDirectoryError
Source§impl From<DirectoryCreationError> for BootstrapDirectoryError
impl From<DirectoryCreationError> for BootstrapDirectoryError
Source§fn from(source: DirectoryCreationError) -> BootstrapDirectoryError
fn from(source: DirectoryCreationError) -> BootstrapDirectoryError
Source§impl From<FileError> for BootstrapDirectoryError
impl From<FileError> for BootstrapDirectoryError
Source§fn from(error: FileError) -> BootstrapDirectoryError
fn from(error: FileError) -> BootstrapDirectoryError
Source§impl From<StoreLockError> for BootstrapDirectoryError
impl From<StoreLockError> for BootstrapDirectoryError
Source§fn from(error: StoreLockError) -> BootstrapDirectoryError
fn from(error: StoreLockError) -> BootstrapDirectoryError
Auto Trait Implementations§
impl !RefUnwindSafe for BootstrapDirectoryError
impl !UnwindSafe for BootstrapDirectoryError
impl Freeze for BootstrapDirectoryError
impl Send for BootstrapDirectoryError
impl Sync for BootstrapDirectoryError
impl Unpin for BootstrapDirectoryError
impl UnsafeUnpin for BootstrapDirectoryError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> HostError for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more