pub enum MigrationError {
MissingSource {
kind: &'static str,
path: PathBuf,
},
UnsupportedSource(String),
UnsupportedResource(String),
Blocked(String),
InvalidPlan(String),
Docker(String),
Io(Error),
SerdeJson(Error),
}Expand description
Migration failures.
Variants§
MissingSource
The source runtime could not be located.
UnsupportedSource(String)
The source runtime is not supported by v1.
UnsupportedResource(String)
The discovered object is out of scope for v1.
Blocked(String)
The current state blocks migration until the user confirms or changes it.
InvalidPlan(String)
The migration plan is internally inconsistent.
Docker(String)
The remote Docker API returned an error.
Io(Error)
A filesystem operation failed.
SerdeJson(Error)
JSON encoding or decoding failed.
Trait Implementations§
Source§impl Debug for MigrationError
impl Debug for MigrationError
Source§impl Display for MigrationError
impl Display for MigrationError
Source§impl Error for MigrationError
impl Error for MigrationError
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()
Source§impl From<Error> for MigrationError
impl From<Error> for MigrationError
Auto Trait Implementations§
impl !RefUnwindSafe for MigrationError
impl !UnwindSafe for MigrationError
impl Freeze for MigrationError
impl Send for MigrationError
impl Sync for MigrationError
impl Unpin for MigrationError
impl UnsafeUnpin 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