pub struct StepBudget {
pub remaining_work: isize,
pub max_credit: isize,
}Expand description
Work budget for one incremental step.
remaining_work counts down by one for each unit of work performed (one
gray object traced, one swept node visited, one finalizer dispatched).
max_credit caps how negative remaining_work may be allowed to go — a
step that overshoots its budget rolls the overrun into the caller’s debt
rather than letting unbounded work happen in one call.
Fields§
§remaining_work: isize§max_credit: isizeImplementations§
Trait Implementations§
Source§impl Clone for StepBudget
impl Clone for StepBudget
Source§fn clone(&self) -> StepBudget
fn clone(&self) -> StepBudget
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 moreSource§impl Debug for StepBudget
impl Debug for StepBudget
impl Copy for StepBudget
Auto Trait Implementations§
impl Freeze for StepBudget
impl RefUnwindSafe for StepBudget
impl Send for StepBudget
impl Sync for StepBudget
impl Unpin for StepBudget
impl UnsafeUnpin for StepBudget
impl UnwindSafe for StepBudget
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