pub enum BootstrapError<Err: Error> {
StepFailed {
step: &'static str,
message: String,
},
DependencyNotSatisfied {
step: &'static str,
dependency: &'static str,
},
VerificationFailed {
step: &'static str,
expected: String,
actual: String,
},
CircularDependency {
step: &'static str,
},
Database(Err),
Internal(String),
}Expand description
Bootstrap step execution errors.
Variants§
StepFailed
A bootstrap step failed during execution.
DependencyNotSatisfied
A required dependency was not satisfied.
VerificationFailed
Verification failed after running a step.
CircularDependency
A circular dependency was detected in the step graph.
Database(Err)
A database error occurred during bootstrap.
Internal(String)
An internal error occurred.
Trait Implementations§
Source§impl<Err> Display for BootstrapError<Err>
impl<Err> Display for BootstrapError<Err>
Source§impl<Err> Error for BootstrapError<Err>
impl<Err> Error for BootstrapError<Err>
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()
Auto Trait Implementations§
impl<Err> Freeze for BootstrapError<Err>where
Err: Freeze,
impl<Err> RefUnwindSafe for BootstrapError<Err>where
Err: RefUnwindSafe,
impl<Err> Send for BootstrapError<Err>where
Err: Send,
impl<Err> Sync for BootstrapError<Err>where
Err: Sync,
impl<Err> Unpin for BootstrapError<Err>where
Err: Unpin,
impl<Err> UnsafeUnpin for BootstrapError<Err>where
Err: UnsafeUnpin,
impl<Err> UnwindSafe for BootstrapError<Err>where
Err: UnwindSafe,
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