pub struct BudgetRecord {
pub dimension: BudgetDimension,
pub limit: u64,
pub consumed: u64,
pub allocated_at: u64,
pub exhausted: bool,
}Expand description
Budget allocation and consumption record.
Fields§
§dimension: BudgetDimensionThe budget dimension this record covers.
limit: u64The maximum amount allowed before dispatch is blocked.
consumed: u64The total amount consumed so far.
allocated_at: u64The timestamp when the budget was allocated.
exhausted: boolWhether the budget has been exhausted (consumed >= limit).
Trait Implementations§
Source§impl Clone for BudgetRecord
impl Clone for BudgetRecord
Source§fn clone(&self) -> BudgetRecord
fn clone(&self) -> BudgetRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for BudgetRecord
impl RefUnwindSafe for BudgetRecord
impl Send for BudgetRecord
impl Sync for BudgetRecord
impl Unpin for BudgetRecord
impl UnsafeUnpin for BudgetRecord
impl UnwindSafe for BudgetRecord
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