#[non_exhaustive]pub enum ModelStopReason {
Cancelled,
DeadlineExceeded,
}Expand description
Reason a model boundary must stop before producing another result.
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.
Cancelled
The enclosing run requested cooperative cancellation.
DeadlineExceeded
The finite monotonic invocation deadline was reached.
Trait Implementations§
Source§impl Clone for ModelStopReason
impl Clone for ModelStopReason
impl Copy for ModelStopReason
Source§impl Debug for ModelStopReason
impl Debug for ModelStopReason
impl Eq for ModelStopReason
Source§impl Hash for ModelStopReason
impl Hash for ModelStopReason
Source§impl PartialEq for ModelStopReason
impl PartialEq for ModelStopReason
impl StructuralPartialEq for ModelStopReason
Auto Trait Implementations§
impl Forget for ModelStopReason
impl Freeze for ModelStopReason
impl Move for ModelStopReason
impl RefUnwindSafe for ModelStopReason
impl Send for ModelStopReason
impl Sync for ModelStopReason
impl Unpin for ModelStopReason
impl UnsafeUnpin for ModelStopReason
impl UnwindSafe for ModelStopReason
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