#[non_exhaustive]pub enum ModelInvocationHistoryError {
FirstRecordNotInitial {
actual: ModelInvocationRevision,
},
IntentMismatch,
PreviousHeadMismatch,
TransitionMissing,
Transition {
source: ModelInvocationError,
},
RecordMismatch,
Integrity {
source: ModelInvocationIntegrityError,
},
}Expand description
Invalid ascending model invocation history.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
FirstRecordNotInitial
The first supplied record was not preparation revision zero.
Fields
§
actual: ModelInvocationRevisionRejected first revision.
IntentMismatch
A successor substituted immutable preparation fields.
PreviousHeadMismatch
A successor did not name the exact previously verified head.
TransitionMissing
A non-initial record omitted its transition.
Transition
Applying the transition to the full predecessor failed.
Fields
§
source: ModelInvocationErrorExact state-machine failure.
RecordMismatch
Expected and persisted successor bytes did not match exactly.
Integrity
Exact record comparison could not be canonicalized.
Fields
§
source: ModelInvocationIntegrityErrorExact canonicalization failure.
Trait Implementations§
Source§impl Clone for ModelInvocationHistoryError
impl Clone for ModelInvocationHistoryError
Source§impl Debug for ModelInvocationHistoryError
impl Debug for ModelInvocationHistoryError
impl Eq for ModelInvocationHistoryError
Source§impl Error for ModelInvocationHistoryError
impl Error for ModelInvocationHistoryError
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()
impl StructuralPartialEq for ModelInvocationHistoryError
Auto Trait Implementations§
impl Forget for ModelInvocationHistoryError
impl Freeze for ModelInvocationHistoryError
impl Move for ModelInvocationHistoryError
impl RefUnwindSafe for ModelInvocationHistoryError
impl Send for ModelInvocationHistoryError
impl Sync for ModelInvocationHistoryError
impl Unpin for ModelInvocationHistoryError
impl UnsafeUnpin for ModelInvocationHistoryError
impl UnwindSafe for ModelInvocationHistoryError
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