pub enum MigrationError {
MigrationDirectoryNotFound,
UnknownMigrationFormat(PathBuf),
IoError(Error),
UnknownMigrationVersion(String),
NoMigrationRun,
// some variants omitted
}
Expand description
Errors that occur while preparing to run migrations
Variants§
MigrationDirectoryNotFound
The migration directory wasn’t found
UnknownMigrationFormat(PathBuf)
Provided migration was in an unknown format
IoError(Error)
General system IO error
UnknownMigrationVersion(String)
Provided migration had an incompatible version number
NoMigrationRun
No migrations had to be/ could be run
Trait Implementations§
Source§impl Debug for MigrationError
impl Debug for MigrationError
Source§impl Display for MigrationError
impl Display for MigrationError
Source§impl Error for MigrationError
impl Error for MigrationError
Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
1.30.0 · 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
Source§impl From<Error> for MigrationError
impl From<Error> for MigrationError
Source§impl From<MigrationError> for RunMigrationsError
impl From<MigrationError> for RunMigrationsError
Source§fn from(e: MigrationError) -> Self
fn from(e: MigrationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MigrationError
impl PartialEq for MigrationError
Auto Trait Implementations§
impl Freeze for MigrationError
impl !RefUnwindSafe for MigrationError
impl Send for MigrationError
impl Sync for MigrationError
impl Unpin for MigrationError
impl !UnwindSafe for MigrationError
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