pub enum MigrationError {
Quex(Error),
UnsupportedDatabaseUrl(String),
BackendNotEnabled(&'static str),
DuplicateVersion(u64),
MissingMigration(u64),
MigrationDirectory {
path: PathBuf,
source: Error,
},
Io(Error),
InvalidMigrationFilename(PathBuf),
InvalidMigrationFile {
path: PathBuf,
message: String,
},
UnsupportedColumnType(String),
ChecksumMismatch {
id: u64,
},
FailedMigration {
id: u64,
},
}Variants§
Quex(Error)
UnsupportedDatabaseUrl(String)
BackendNotEnabled(&'static str)
DuplicateVersion(u64)
MissingMigration(u64)
MigrationDirectory
Io(Error)
InvalidMigrationFilename(PathBuf)
InvalidMigrationFile
UnsupportedColumnType(String)
ChecksumMismatch
FailedMigration
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 UnsafeUnpin 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