#[non_exhaustive]pub enum ToolProgressEventValidationError {
Context {
source: ToolContextBindingError,
},
InvocationMismatch {
expected: InvocationId,
actual: InvocationId,
},
AttemptMismatch {
expected: AttemptId,
actual: AttemptId,
},
ToolIdentityMismatch {
expected: Box<CapabilityIdentity>,
actual: Box<CapabilityIdentity>,
},
SequenceLimitExceeded {
maximum: ExecutionCount,
actual: ExecutionCount,
},
}Expand description
Invalid relationship between a progress event and invocation snapshot.
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.
Context
Context identity or invocation semantics did not match the descriptor.
Fields
§
source: ToolContextBindingErrorUnderlying context binding failure.
InvocationMismatch
Event named another logical invocation.
Fields
§
expected: InvocationIdExact context invocation.
§
actual: InvocationIdRejected event invocation.
AttemptMismatch
Event named another physical attempt.
ToolIdentityMismatch
Event named another owner-qualified tool version.
Fields
§
expected: Box<CapabilityIdentity>Exact descriptor identity.
§
actual: Box<CapabilityIdentity>Rejected event identity.
SequenceLimitExceeded
Sequence lies outside the descriptor’s zero-based event capacity.
Fields
§
maximum: ExecutionCountDescriptor event-count ceiling.
§
actual: ExecutionCountRejected zero-based sequence.
Trait Implementations§
impl Eq for ToolProgressEventValidationError
Source§impl Error for ToolProgressEventValidationError
impl Error for ToolProgressEventValidationError
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 ToolProgressEventValidationError
Auto Trait Implementations§
impl Forget for ToolProgressEventValidationError
impl Freeze for ToolProgressEventValidationError
impl Move for ToolProgressEventValidationError
impl RefUnwindSafe for ToolProgressEventValidationError
impl Send for ToolProgressEventValidationError
impl Sync for ToolProgressEventValidationError
impl Unpin for ToolProgressEventValidationError
impl UnsafeUnpin for ToolProgressEventValidationError
impl UnwindSafe for ToolProgressEventValidationError
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