pub enum MigratorError<I, T: Error + 'static> {
Dependency(DependencyError<I>),
Adapter(T),
Migration {
id: I,
description: &'static str,
direction: MigrationDirection,
error: T,
},
}
Expand description
Error resulting either from migration definitions or from migration application with an adapter.
Variants§
Trait Implementations§
Source§impl<I, T> Display for MigratorError<I, T>
impl<I, T> Display for MigratorError<I, T>
Source§impl<I, T> Error for MigratorError<I, T>
impl<I, T> Error for MigratorError<I, T>
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<I, T> Freeze for MigratorError<I, T>
impl<I, T> RefUnwindSafe for MigratorError<I, T>where
T: RefUnwindSafe,
I: RefUnwindSafe,
impl<I, T> Send for MigratorError<I, T>
impl<I, T> Sync for MigratorError<I, T>
impl<I, T> Unpin for MigratorError<I, T>
impl<I, T> UnwindSafe for MigratorError<I, T>where
T: UnwindSafe,
I: UnwindSafe,
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