#[non_exhaustive]pub enum ToolContextError {
ZeroEffectiveTimeout,
TimeoutExceedsDescriptor {
descriptor: DurationMillis,
actual: DurationMillis,
},
DeadlineReached {
deadline: Timestamp,
observed_at: Timestamp,
},
MonotonicDeadlineOutOfRange {
remaining: Duration,
},
ProgressUnsupported,
}Expand description
Failure to construct a finite tool-attempt context.
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.
ZeroEffectiveTimeout
An effective zero timeout would make the attempt immediately ineligible.
TimeoutExceedsDescriptor
A runtime layer attempted to widen the immutable tool timeout.
Fields
§
descriptor: DurationMillisImmutable descriptor ceiling.
§
actual: DurationMillisRejected effective timeout.
DeadlineReached
The wall-clock observation reached or passed the run deadline.
Fields
MonotonicDeadlineOutOfRange
The platform monotonic clock could not represent the finite deadline.
ProgressUnsupported
A progress sink was supplied to a descriptor that forbids progress.
Trait Implementations§
Source§impl Clone for ToolContextError
impl Clone for ToolContextError
Source§impl Debug for ToolContextError
impl Debug for ToolContextError
Source§impl Display for ToolContextError
impl Display for ToolContextError
impl Eq for ToolContextError
Source§impl Error for ToolContextError
impl Error for ToolContextError
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 PartialEq for ToolContextError
impl PartialEq for ToolContextError
impl StructuralPartialEq for ToolContextError
Auto Trait Implementations§
impl Forget for ToolContextError
impl Freeze for ToolContextError
impl Move for ToolContextError
impl RefUnwindSafe for ToolContextError
impl Send for ToolContextError
impl Sync for ToolContextError
impl Unpin for ToolContextError
impl UnsafeUnpin for ToolContextError
impl UnwindSafe for ToolContextError
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