pub enum MigrateError {
UnknownMigration(String),
WrongVersion {
actual: String,
expected: String,
},
Unmapped(Vec<BTreeSet<String>>),
TooManyConfigurations(usize),
TransformFailed(String),
Activation(ActivationError),
NotStarted,
Exists(Address),
Append(AppendError),
}Expand description
Why a migration or fork was refused.
Variants§
UnknownMigration(String)
No migration with that IRI is declared.
WrongVersion
The actor does not run the migration’s source version.
Unmapped(Vec<BTreeSet<String>>)
Reachable configurations the migration does not map.
TooManyConfigurations(usize)
Too many reachable configurations to check.
TransformFailed(String)
The datamodel transform failed; nothing was appended.
Activation(ActivationError)
The actor could not be activated.
NotStarted
The actor has no state yet (empty journal).
Exists(Address)
The target actor of a fork already has a journal.
Append(AppendError)
The append failed.
Trait Implementations§
Source§impl Clone for MigrateError
impl Clone for MigrateError
Source§impl Debug for MigrateError
impl Debug for MigrateError
Source§impl Display for MigrateError
impl Display for MigrateError
Source§impl Error for MigrateError
impl Error for MigrateError
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 PartialEq for MigrateError
impl PartialEq for MigrateError
impl StructuralPartialEq for MigrateError
Auto Trait Implementations§
impl Forget for MigrateError
impl Freeze for MigrateError
impl Move for MigrateError
impl RefUnwindSafe for MigrateError
impl Send for MigrateError
impl Sync for MigrateError
impl Unpin for MigrateError
impl UnsafeUnpin for MigrateError
impl UnwindSafe for MigrateError
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