pub enum RecipeError {
InvalidRegex(Error),
InvalidRecipePath {
path: PathBuf,
source: Error,
},
InvalidRecipeFile {
path: PathBuf,
source: Error,
},
InvalidFilename {
file_stem: String,
},
InvalidRecipeKind {
kind: String,
},
RepeatedVersion {
version: String,
name1: String,
name2: String,
},
InvalidRevertMeta {
version: String,
name: String,
},
InvalidFixupMeta {
version: String,
name: String,
},
ConflictedFixup {
version: String,
name: String,
old_checksum: String,
},
InvalidFixupNewTarget {
version: String,
name: String,
old_checksum: String,
new_version: String,
new_name: String,
new_checksum: String,
},
}
Expand description
An Error occurred during a migration cycle
Variants§
InvalidRegex(Error)
InvalidRecipePath
InvalidRecipeFile
InvalidFilename
InvalidRecipeKind
RepeatedVersion
InvalidRevertMeta
InvalidFixupMeta
ConflictedFixup
InvalidFixupNewTarget
Trait Implementations§
Source§impl Debug for RecipeError
impl Debug for RecipeError
Source§impl Display for RecipeError
impl Display for RecipeError
Source§impl Error for RecipeError
impl Error for RecipeError
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<RecipeError> for MigratorError
impl From<RecipeError> for MigratorError
Source§fn from(err: RecipeError) -> MigratorError
fn from(err: RecipeError) -> MigratorError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RecipeError
impl !RefUnwindSafe for RecipeError
impl Send for RecipeError
impl Sync for RecipeError
impl Unpin for RecipeError
impl !UnwindSafe for RecipeError
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