pub enum RebuildError {
NotBelow {
circle: Audience,
version: u32,
},
Open(OpenError),
Export(SnapshotWriteError<ExportStopped>),
Database(DbError),
Directory(SettingsError),
Folder(FileError),
Cleanup {
operation: Box<RebuildError>,
cleanup: Box<RebuildError>,
},
}Expand description
Why a rebuild could not run.
Variants§
NotBelow
The app has no breaking migration past the circle’s version: nothing to rebuild it for.
Open(OpenError)
The rebuild’s store could not open at the circle’s version or migrate.
Export(SnapshotWriteError<ExportStopped>)
The circle’s state could not be read out of the rebuild’s store.
Database(DbError)
The rebuild’s store failed.
Directory(SettingsError)
The rebuild’s folder could not be made.
Folder(FileError)
The rebuild’s folder could not be removed.
Cleanup
A rebuild failed, and so did removing what it left.
Fields
§
operation: Box<RebuildError>The failure that ended the rebuild.
§
cleanup: Box<RebuildError>The failure of the removal that followed.
Trait Implementations§
Source§impl Debug for RebuildError
impl Debug for RebuildError
Source§impl Display for RebuildError
impl Display for RebuildError
Source§impl Error for RebuildError
impl Error for RebuildError
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<DbError> for RebuildError
impl From<DbError> for RebuildError
Source§impl From<FileError> for RebuildError
impl From<FileError> for RebuildError
Source§impl From<OpenError> for RebuildError
impl From<OpenError> for RebuildError
Source§impl From<SettingsError> for RebuildError
impl From<SettingsError> for RebuildError
Source§fn from(source: SettingsError) -> Self
fn from(source: SettingsError) -> Self
Converts to this type from the input type.
Source§impl From<SnapshotWriteError<ExportStopped>> for RebuildError
impl From<SnapshotWriteError<ExportStopped>> for RebuildError
Source§fn from(source: SnapshotWriteError<ExportStopped>) -> Self
fn from(source: SnapshotWriteError<ExportStopped>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for RebuildError
impl !UnwindSafe for RebuildError
impl Freeze for RebuildError
impl Send for RebuildError
impl Sync for RebuildError
impl Unpin for RebuildError
impl UnsafeUnpin for RebuildError
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