Enum MigrationError
pub enum MigrationError {
DecodeFailed(String),
EncodeFailed(String),
StepMissing {
from: u32,
to: u32,
},
}Expand description
Migration step failure. Wraps strategy-specific errors as text so the runner can keep its surface narrow.
Variants§
DecodeFailed(String)
The payload could not be decoded with the source-version reader.
EncodeFailed(String)
The payload could not be re-encoded with the target-version writer.
StepMissing
A migration matched but is missing for one of the steps in the chain.
Trait Implementations§
§impl Debug for MigrationError
impl Debug for MigrationError
Auto Trait Implementations§
impl Freeze for MigrationError
impl RefUnwindSafe for MigrationError
impl Send for MigrationError
impl Sync for MigrationError
impl Unpin for MigrationError
impl UnsafeUnpin for MigrationError
impl UnwindSafe for MigrationError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more