pub struct Budget { /* private fields */ }Expand description
Shared between an engine’s runtime and its interrupt handler.
Records why execution was interrupted rather than leaving it to be inferred from the
engine’s own exception or trap text. QuickJS, for instance, reports an interrupt as an
ordinary Error whose message happens to be “interrupted”; keying behavior off that
string would make the difference between “your rule looped forever” and “your rule
threw” depend on wording this project does not control. A different engine’s own
interrupted-execution signal would be exactly as unreliable to string-match, for the
same reason.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Budget
impl RefUnwindSafe for Budget
impl Send for Budget
impl Sync for Budget
impl Unpin for Budget
impl UnsafeUnpin for Budget
impl UnwindSafe for Budget
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