pub struct MigrationsError { /* private fields */ }Expand description
Represents errors produced by migration code
Implementations§
Source§impl MigrationsError
impl MigrationsError
pub fn migration_database_step_failed( last_successful_version: Option<u32>, cause: Option<Box<dyn Error + Send + Sync>>, ) -> MigrationsError
pub fn migration_database_failed( last_successful_version: Option<u32>, cause: Option<Box<dyn Error + Send + Sync>>, ) -> MigrationsError
pub fn migration_setup_failed( cause: Option<Box<dyn Error + Send + Sync>>, ) -> MigrationsError
pub fn migration_versioning_failed( cause: Option<Box<dyn Error + Send + Sync>>, ) -> MigrationsError
pub fn custom_message( message: &str, last_successful_version: Option<u32>, cause: Option<Box<dyn Error + Send + Sync>>, ) -> MigrationsError
pub fn kind(&self) -> &MigrationsErrorKind
pub fn last_successful_version(&self) -> Option<u32>
Trait Implementations§
Source§impl Debug for MigrationsError
impl Debug for MigrationsError
Source§impl Display for MigrationsError
impl Display for MigrationsError
Source§impl Error for MigrationsError
impl Error for MigrationsError
1.30.0 · 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 MigrationsError
impl !RefUnwindSafe for MigrationsError
impl Send for MigrationsError
impl Sync for MigrationsError
impl Unpin for MigrationsError
impl UnsafeUnpin for MigrationsError
impl !UnwindSafe for MigrationsError
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