pub enum Kind {
InvalidName,
InvalidVersion,
RepeatedVersion(Migration),
DivergentVersion(Migration, Migration),
MissingVersion(Migration),
InvalidMigrationPath(PathBuf, Error),
ConfigError(String),
Connection(String, Box<dyn Error + Sync + Send>),
InvalidMigrationFile(PathBuf, Error),
}Expand description
Enum listing possible errors from Refinery.
Variants§
InvalidName
An Error from an invalid file name migration
InvalidVersion
An Error from an invalid version on a file name migration
RepeatedVersion(Migration)
An Error from a repeated version, migration version numbers must be unique
DivergentVersion(Migration, Migration)
An Error from an divergent version, the applied version is different to the filesystem one
MissingVersion(Migration)
An Error from an divergent version, the applied version is missing on the filesystem
InvalidMigrationPath(PathBuf, Error)
An Error from an invalid migrations path location
ConfigError(String)
An Error parsing refinery Config
Connection(String, Box<dyn Error + Sync + Send>)
An Error from an underlying database connection Error
InvalidMigrationFile(PathBuf, Error)
An Error from an invalid migration file (not UTF-8 etc)
Trait Implementations§
Source§impl Error for Kind
impl Error for Kind
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()
Auto Trait Implementations§
impl Freeze for Kind
impl !RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl !UnwindSafe for Kind
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