pub enum ParkReason {
Suspended {
reason: String,
input_schema: Value,
},
BudgetExceeded {
budget: Budget,
observed: f64,
},
}Expand description
Why a run parked instead of completing.
Variants§
Suspended
A tool suspended the run, awaiting input matching the schema.
Fields
BudgetExceeded
A declared budget was crossed. Resume may carry an extension.
Trait Implementations§
Source§impl Clone for ParkReason
impl Clone for ParkReason
Source§fn clone(&self) -> ParkReason
fn clone(&self) -> ParkReason
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParkReason
impl RefUnwindSafe for ParkReason
impl Send for ParkReason
impl Sync for ParkReason
impl Unpin for ParkReason
impl UnsafeUnpin for ParkReason
impl UnwindSafe for ParkReason
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