pub struct BudgetLedger {
pub limits: SchedulerBudget,
pub turns: u32,
pub total_tokens: u64,
pub started_at_ms: Option<u64>,
}Expand description
Running budget counters + limits for a task. Wraps the existing SchedulerBudget
limits so M1 can move should_terminate evaluation here without changing the axes.
Fields§
§limits: SchedulerBudget§turns: u32§total_tokens: u64§started_at_ms: Option<u64>Implementations§
Trait Implementations§
Source§impl Clone for BudgetLedger
impl Clone for BudgetLedger
Source§fn clone(&self) -> BudgetLedger
fn clone(&self) -> BudgetLedger
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 BudgetLedger
impl Debug for BudgetLedger
Auto Trait Implementations§
impl Freeze for BudgetLedger
impl RefUnwindSafe for BudgetLedger
impl Send for BudgetLedger
impl Sync for BudgetLedger
impl Unpin for BudgetLedger
impl UnsafeUnpin for BudgetLedger
impl UnwindSafe for BudgetLedger
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