pub enum MigrationError {
SlotAlreadyMigrating {
slot: u16,
},
SlotAlreadyImporting {
slot: u16,
},
NoMigrationInProgress {
slot: u16,
},
TargetUnreachable {
addr: SocketAddr,
reason: String,
},
Aborted {
slot: u16,
},
InvalidStateTransition {
from: MigrationState,
to: MigrationState,
},
Timeout {
elapsed: Duration,
},
}Expand description
Errors that can occur during migration.
Variants§
SlotAlreadyMigrating
Slot is already being migrated out.
SlotAlreadyImporting
Slot is already being imported.
NoMigrationInProgress
No migration in progress for this slot.
TargetUnreachable
Migration target is unreachable.
Aborted
Migration was aborted.
InvalidStateTransition
Invalid migration state transition.
Timeout
Timeout during migration.
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 · 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()
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