pub enum MigrationError {
DaemonNotFound(u64),
TargetUnavailable(u64),
NoTargetAvailable,
StateFailed(String),
AlreadyMigrating(u64),
WrongPhase {
expected: MigrationPhase,
got: MigrationPhase,
},
SnapshotTooLarge {
size: usize,
max: usize,
},
}Expand description
Errors from migration operations.
Variants§
DaemonNotFound(u64)
Daemon not registered locally.
Target node unreachable or refused.
NoTargetAvailable
Auto-placement found no candidate node satisfying the
daemon’s capability requirements. Distinct from
TargetUnavailable(_) which carries a specific failed
target — auto-placement never has one to report. Pre-fix
the auto path constructed TargetUnavailable(0),
surfacing “target node 0x0 unavailable” to operators when
no specific node had ever been tried.
StateFailed(String)
Snapshot/restore failure.
AlreadyMigrating(u64)
Migration already in progress for this daemon.
WrongPhase
Attempted to advance from wrong phase.
SnapshotTooLarge
Snapshot exceeds the maximum transferable size.
Trait Implementations§
Source§impl Clone for MigrationError
impl Clone for MigrationError
Source§fn clone(&self) -> MigrationError
fn clone(&self) -> MigrationError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§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
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()
Source§impl From<MigrationError> for DaemonError
impl From<MigrationError> for DaemonError
Source§fn from(source: MigrationError) -> Self
fn from(source: MigrationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for MigrationError
impl PartialEq for MigrationError
Source§fn eq(&self, other: &MigrationError) -> bool
fn eq(&self, other: &MigrationError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MigrationError
impl StructuralPartialEq 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