pub struct LimitsPolicy { /* private fields */ }Expand description
The standard policy for a single execution.
Enforces all four hard limits:
- Maximum step count
- Wall-clock timeout
- Budget (cost units)
- Tool allowlist
Checks are evaluated in order. The first failing check stops execution. All checks are pure — no state is mutated, no network calls are made.
Implementations§
Trait Implementations§
Source§impl Policy for LimitsPolicy
impl Policy for LimitsPolicy
fn evaluate(&self, ctx: &PolicyContext) -> PolicyDecision
Auto Trait Implementations§
impl Freeze for LimitsPolicy
impl RefUnwindSafe for LimitsPolicy
impl Send for LimitsPolicy
impl Sync for LimitsPolicy
impl Unpin for LimitsPolicy
impl UnsafeUnpin for LimitsPolicy
impl UnwindSafe for LimitsPolicy
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