pub struct FuelMeter { /* private fields */ }Expand description
Fuel accounting for node expansions. The production counter is device-resident and read back once post-solve as bounded metadata; this meter is the typed refusal seam both sides share. Exhaustion saturates: once refused, every further charge refuses with the same literals, so no caller can slip work past the budget by retrying.
Implementations§
Source§impl FuelMeter
impl FuelMeter
pub fn new(limit: u64) -> Self
pub fn spent(&self) -> u64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FuelMeter
impl RefUnwindSafe for FuelMeter
impl Send for FuelMeter
impl Sync for FuelMeter
impl Unpin for FuelMeter
impl UnsafeUnpin for FuelMeter
impl UnwindSafe for FuelMeter
Blanket Implementations§
impl<T> Allocation for T
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