#[non_exhaustive]pub enum ToolInvocationHistoryError {
FirstRecordNotInitial {
actual: ToolInvocationRevision,
},
IntentMismatch,
PreviousHeadMismatch,
TransitionMissing,
Transition {
source: ToolInvocationError,
},
RecordMismatch,
Integrity {
source: ToolInvocationIntegrityError,
},
}Expand description
Invalid ascending 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: ToolInvocationRevisionRejected 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: ToolInvocationErrorExact state-machine failure.
RecordMismatch
Expected and persisted successor bytes did not match exactly.
Integrity
Exact record comparison could not be canonicalized.
Fields
§
source: ToolInvocationIntegrityErrorExact canonicalization failure.
Trait Implementations§
Source§impl Clone for ToolInvocationHistoryError
impl Clone for ToolInvocationHistoryError
Source§impl Debug for ToolInvocationHistoryError
impl Debug for ToolInvocationHistoryError
Source§impl Display for ToolInvocationHistoryError
impl Display for ToolInvocationHistoryError
impl Eq for ToolInvocationHistoryError
Source§impl Error for ToolInvocationHistoryError
impl Error for ToolInvocationHistoryError
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 ToolInvocationHistoryError
Auto Trait Implementations§
impl Forget for ToolInvocationHistoryError
impl Freeze for ToolInvocationHistoryError
impl Move for ToolInvocationHistoryError
impl RefUnwindSafe for ToolInvocationHistoryError
impl Send for ToolInvocationHistoryError
impl Sync for ToolInvocationHistoryError
impl Unpin for ToolInvocationHistoryError
impl UnsafeUnpin for ToolInvocationHistoryError
impl UnwindSafe for ToolInvocationHistoryError
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