#[non_exhaustive]pub enum ControlBreach {
Budget {
used: u64,
limit: u64,
},
AgentBackstop {
limit: u64,
},
}Expand description
A run-level limit breach that must halt the whole run, distinct from an
agent-domain failure. When one occurs inside a combinator the breach is
recorded (set-once) and the run-wide cancellation token is fired, so the
breach survives the combinator’s Err -> None collapse and the caller can
detect it via WorkflowCtx::control_breach.
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.
Budget
The shared token budget was exhausted.
Fields
AgentBackstop
The runaway agent backstop was hit.
Trait Implementations§
Source§impl Clone for ControlBreach
impl Clone for ControlBreach
Source§fn clone(&self) -> ControlBreach
fn clone(&self) -> ControlBreach
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 moreimpl Copy for ControlBreach
Source§impl Debug for ControlBreach
impl Debug for ControlBreach
impl Eq for ControlBreach
Source§impl PartialEq for ControlBreach
impl PartialEq for ControlBreach
Source§fn eq(&self, other: &ControlBreach) -> bool
fn eq(&self, other: &ControlBreach) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ControlBreach
Auto Trait Implementations§
impl Freeze for ControlBreach
impl RefUnwindSafe for ControlBreach
impl Send for ControlBreach
impl Sync for ControlBreach
impl Unpin for ControlBreach
impl UnsafeUnpin for ControlBreach
impl UnwindSafe for ControlBreach
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.