#[non_exhaustive]pub enum ModelEventError {
SequenceOutOfRange {
maximum: ExecutionCount,
actual: ExecutionCount,
},
OutputIndexOutOfRange {
maximum_exclusive: ExecutionCount,
actual: ExecutionCount,
},
StartedAttemptMismatch {
event: AttemptId,
provenance: AttemptId,
},
InvalidOutputStart {
error: ModelOutputItemError,
},
}Expand description
Intrinsically invalid provider-neutral model event.
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.
SequenceOutOfRange
The zero-based semantic event sequence exceeded the hard ceiling.
OutputIndexOutOfRange
The zero-based output position exceeded the response item ceiling.
Fields
§
maximum_exclusive: ExecutionCountExclusive immutable upper bound.
§
actual: ExecutionCountRejected index.
StartedAttemptMismatch
The stream-start provenance named a different attempt.
Fields
InvalidOutputStart
An output header carried invalid source or trust metadata.
Fields
§
error: ModelOutputItemErrorIntrinsic metadata failure.
Trait Implementations§
Source§impl Clone for ModelEventError
impl Clone for ModelEventError
Source§impl Debug for ModelEventError
impl Debug for ModelEventError
Source§impl Display for ModelEventError
impl Display for ModelEventError
impl Eq for ModelEventError
Source§impl Error for ModelEventError
impl Error for ModelEventError
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 ModelEventError
impl PartialEq for ModelEventError
impl StructuralPartialEq for ModelEventError
Auto Trait Implementations§
impl Forget for ModelEventError
impl Freeze for ModelEventError
impl Move for ModelEventError
impl RefUnwindSafe for ModelEventError
impl Send for ModelEventError
impl Sync for ModelEventError
impl Unpin for ModelEventError
impl UnsafeUnpin for ModelEventError
impl UnwindSafe for ModelEventError
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