pub enum BootstrapDirectoryError {
Create(DirectoryCreationError),
Lock(StoreLockError),
File(FileError),
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.
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)>
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()
Source§impl From<BootstrapDirectoryError> for BootstrapError
impl From<BootstrapDirectoryError> for BootstrapError
Source§fn from(error: BootstrapDirectoryError) -> Self
fn from(error: BootstrapDirectoryError) -> Self
Converts to this type from the input type.
Source§impl From<BootstrapDirectoryError> for StoreCreationError
impl From<BootstrapDirectoryError> for StoreCreationError
Source§fn from(error: BootstrapDirectoryError) -> Self
fn from(error: BootstrapDirectoryError) -> Self
Converts to this type from the input type.
Source§impl From<Bug> for BootstrapDirectoryError
impl From<Bug> for BootstrapDirectoryError
Source§fn from(source: Bug) -> BootstrapDirectoryError
fn from(source: Bug) -> BootstrapDirectoryError
Converts to this type from the input type.
Source§impl From<DirectoryCreationError> for BootstrapDirectoryError
impl From<DirectoryCreationError> for BootstrapDirectoryError
Source§fn from(source: DirectoryCreationError) -> BootstrapDirectoryError
fn from(source: DirectoryCreationError) -> BootstrapDirectoryError
Converts to this type from the input type.
Source§impl From<FileError> for BootstrapDirectoryError
impl From<FileError> for BootstrapDirectoryError
Source§fn from(error: FileError) -> BootstrapDirectoryError
fn from(error: FileError) -> BootstrapDirectoryError
Converts to this type from the input type.
Source§impl From<StoreLockError> for BootstrapDirectoryError
impl From<StoreLockError> for BootstrapDirectoryError
Source§fn from(error: StoreLockError) -> BootstrapDirectoryError
fn from(error: StoreLockError) -> BootstrapDirectoryError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for BootstrapDirectoryError
impl !RefUnwindSafe for BootstrapDirectoryError
impl Send for BootstrapDirectoryError
impl Sync for BootstrapDirectoryError
impl Unpin for BootstrapDirectoryError
impl UnsafeUnpin for BootstrapDirectoryError
impl !UnwindSafe 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
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> 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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.