#[non_exhaustive]pub enum MigrateError {
ChecksumMismatch {
version: i64,
},
NewerThanProgram {
version: i64,
},
Dirty {
version: i64,
},
Failed {
version: i64,
error: RelError,
},
Backend(String),
}Expand description
Why a migration run stopped.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ChecksumMismatch
A migration already applied has different text now (its checksum differs).
NewerThanProgram
The database has applied a version this program does not know: it is older than the database it is pointed at. The program refuses rather than run against a newer schema.
Dirty
A migration is recorded as partially applied (success = false); a person must fix it.
Failed
A migration’s SQL failed; its transaction was rolled back.
Backend(String)
Anything else (connection, ledger access).
Trait Implementations§
Source§impl Clone for MigrateError
impl Clone for MigrateError
Source§impl Debug for MigrateError
impl Debug for MigrateError
Source§impl Display for MigrateError
impl Display for MigrateError
impl Eq for MigrateError
Source§impl Error for MigrateError
impl Error for MigrateError
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
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 PartialEq for MigrateError
impl PartialEq for MigrateError
impl StructuralPartialEq for MigrateError
Auto Trait Implementations§
impl Freeze for MigrateError
impl RefUnwindSafe for MigrateError
impl Send for MigrateError
impl Sync for MigrateError
impl Unpin for MigrateError
impl UnsafeUnpin for MigrateError
impl UnwindSafe for MigrateError
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