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
MigrationDirectoryNotFound
The 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
NoMigrationRun
No migrations had to be/ could be run
Trait Implementations
impl Debug for MigrationError
[src]
impl Debug for MigrationError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for MigrationError
[src]
impl Error for MigrationError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This 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 MigrationError
fn 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 MigrationError
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl From<Error> for MigrationError
[src]
impl From<Error> for MigrationError
impl From<MigrationError> for RunMigrationsError
[src]
impl From<MigrationError> for RunMigrationsError
fn from(e: MigrationError) -> Self
[src]
fn from(e: MigrationError) -> Self
Performs the conversion.
Auto Trait Implementations
impl Send for MigrationError
impl Send for MigrationError
impl Sync for MigrationError
impl Sync for MigrationError