pub enum MigrationError {
DaemonNotFound(u64),
TargetUnavailable(u64),
NoTargetAvailable,
StateFailed(String),
AlreadyMigrating(u64),
WrongPhase {
expected: MigrationPhase,
got: MigrationPhase,
},
SnapshotTooLarge {
size: usize,
max: usize,
},
BufferFull {
events: usize,
bytes: usize,
},
WrongPeer {
daemon_origin: u64,
from: u64,
expected: u64,
},
}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.
BufferFull
Wire-driven event-buffering surface refused an insert because the per-daemon out-of-order pending buffer is at its byte or event-count cap. Source must back off; the migration is not failed but the offending event was not accepted.
Fields
WrongPeer
Inbound migration message arrived from a peer that is not the recorded principal for this migration’s role. The wire layer authenticates the session; this layer authenticates that the authenticated peer is actually a participant in the recorded migration (source / target / orchestrator). Mismatches are silently dropped at the dispatch boundary rather than acted on.
Trait Implementations§
Source§impl Clone for MigrationError
impl Clone for MigrationError
Source§fn clone(&self) -> MigrationError
fn clone(&self) -> MigrationError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
Source§impl PartialEq for MigrationError
impl PartialEq for MigrationError
Source§fn eq(&self, other: &MigrationError) -> bool
fn eq(&self, other: &MigrationError) -> bool
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.