pub enum MigrationError {
DatabaseError(String),
AlreadyApplied(i64),
NotFound(i64),
ChecksumMismatch {
version: i64,
expected: String,
actual: String,
},
LockError(String),
FailedState(i64),
InvalidVersion(i64),
MigrationGap(i64),
IoError(Error),
SerializationError(Error),
Custom(String),
}
Expand description
Main error type for migration operations
Variants§
DatabaseError(String)
Database operation failed
AlreadyApplied(i64)
Migration has already been applied
NotFound(i64)
Migration was not found
ChecksumMismatch
Checksum verification failed
Fields
LockError(String)
Lock acquisition failed
FailedState(i64)
Migration is in a failed state
InvalidVersion(i64)
Invalid migration version
MigrationGap(i64)
Migration gap detected
IoError(Error)
IO error occurred
SerializationError(Error)
Serialization error
Custom(String)
Custom error
Implementations§
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 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<Error> for MigrationError
impl From<Error> 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