#[non_exhaustive]pub enum CoordError {
EmptySessionId,
EmptyRunId,
#[non_exhaustive] StepExceedsStepInRun {
step: NonZeroU64,
step_in_run: NonZeroU64,
},
EmptyCallId,
EmptyToolName,
}Expand description
Explains why a lifecycle coordinate could not be constructed.
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.
EmptySessionId
The containing session identity was empty.
EmptyRunId
The containing run identity was empty.
#[non_exhaustive]StepExceedsStepInRun
A per-turn step number exceeded its run-wide step number.
Fields
This variant is marked as non-exhaustive
Non-exhaustive enum variants could have additional fields added in future. Therefore, non-exhaustive enum variants cannot be constructed in external crates and cannot be matched against.
§
step: NonZeroU64The one-based step number within the turn.
§
step_in_run: NonZeroU64The one-based step number across the run.
EmptyCallId
The model-assigned tool-call identity was empty.
EmptyToolName
The effective tool name was empty.
Trait Implementations§
Source§impl Clone for CoordError
impl Clone for CoordError
impl Copy for CoordError
Source§impl Debug for CoordError
impl Debug for CoordError
Source§impl Display for CoordError
impl Display for CoordError
impl Eq for CoordError
Source§impl Error for CoordError
impl Error for CoordError
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 Hash for CoordError
impl Hash for CoordError
Source§impl PartialEq for CoordError
impl PartialEq for CoordError
impl StructuralPartialEq for CoordError
Auto Trait Implementations§
impl Freeze for CoordError
impl RefUnwindSafe for CoordError
impl Send for CoordError
impl Sync for CoordError
impl Unpin for CoordError
impl UnsafeUnpin for CoordError
impl UnwindSafe for CoordError
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