pub enum DirectoryCreationError {
AlreadyExists(StoreId),
File(FileError),
Settings(SettingsError),
Published {
id: StoreId,
source: Error,
},
Rollback {
operation: Box<DirectoryCreationError>,
cleanup: Error,
},
}Expand description
A store creation failure, with publication and rollback failures explicit.
Variants§
AlreadyExists(StoreId)
A directory or file already occupies this store’s id. It is untouched.
File(FileError)
An operation failed before publication.
Settings(SettingsError)
Writing the new device’s settings failed before publication.
Published
The entire store is visible, but syncing its parent failed.
Rollback
Removing the unpublished directory also failed.
Fields
§
operation: Box<DirectoryCreationError>The original creation failure.
Trait Implementations§
Source§impl CarriesBug for DirectoryCreationError
impl CarriesBug for DirectoryCreationError
Source§impl Debug for DirectoryCreationError
impl Debug for DirectoryCreationError
Source§impl Display for DirectoryCreationError
impl Display for DirectoryCreationError
Source§impl Error for DirectoryCreationError
impl Error for DirectoryCreationError
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<DirectoryCreationError> for BootstrapDirectoryError
impl From<DirectoryCreationError> for BootstrapDirectoryError
Source§fn from(source: DirectoryCreationError) -> Self
fn from(source: DirectoryCreationError) -> Self
Converts to this type from the input type.
Source§impl From<FileError> for DirectoryCreationError
impl From<FileError> for DirectoryCreationError
Source§impl From<SettingsError> for DirectoryCreationError
impl From<SettingsError> for DirectoryCreationError
Source§fn from(source: SettingsError) -> Self
fn from(source: SettingsError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DirectoryCreationError
impl !RefUnwindSafe for DirectoryCreationError
impl Send for DirectoryCreationError
impl Sync for DirectoryCreationError
impl Unpin for DirectoryCreationError
impl UnsafeUnpin for DirectoryCreationError
impl !UnwindSafe for DirectoryCreationError
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