Enum diesel::migration::MigrationError [−][src]
pub enum MigrationError {
MigrationDirectoryNotFound,
UnknownMigrationFormat(PathBuf),
IoError(Error),
UnknownMigrationVersion(String),
NoMigrationRun,
// some variants omitted
}Errors that occur while preparing to run migrations
Variants
MigrationDirectoryNotFoundThe 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
NoMigrationRunNo migrations had to be/ could be run
Trait Implementations
impl Debug for MigrationError[src]
impl Debug for MigrationErrorfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Error for MigrationError[src]
impl Error for MigrationErrorfn description(&self) -> &str[src]
fn description(&self) -> &strThis method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>1.0.0[src]
fn cause(&self) -> Option<&Error>1.0.0
[src]The lower-level cause of this error, if any. Read more
impl Display for MigrationError[src]
impl Display for MigrationErrorfn fmt(&self, f: &mut Formatter) -> Result<(), Error>[src]
fn fmt(&self, f: &mut Formatter) -> Result<(), Error>Formats the value using the given formatter. Read more
impl PartialEq for MigrationError[src]
impl PartialEq for MigrationErrorfn eq(&self, other: &Self) -> bool[src]
fn eq(&self, other: &Self) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl From<Error> for MigrationError[src]
impl From<Error> for MigrationErrorimpl From<MigrationError> for RunMigrationsError[src]
impl From<MigrationError> for RunMigrationsErrorfn from(e: MigrationError) -> Self[src]
fn from(e: MigrationError) -> SelfPerforms the conversion.
Auto Trait Implementations
impl Send for MigrationError
impl Send for MigrationErrorimpl Sync for MigrationError
impl Sync for MigrationError