pub struct SnapshotBudget {
pub task_id: TaskId,
pub dimension: BudgetDimension,
pub limit: u64,
pub consumed: u64,
pub allocated_at: u64,
pub exhausted: bool,
}Expand description
Snapshot representation of a budget allocation and consumption record.
Fields§
§task_id: TaskIdThe task whose budget this record covers.
dimension: BudgetDimensionThe budget dimension.
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.
Trait Implementations§
Source§impl Clone for SnapshotBudget
impl Clone for SnapshotBudget
Source§fn clone(&self) -> SnapshotBudget
fn clone(&self) -> SnapshotBudget
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 moreSource§impl Debug for SnapshotBudget
impl Debug for SnapshotBudget
Source§impl<'de> Deserialize<'de> for SnapshotBudget
impl<'de> Deserialize<'de> for SnapshotBudget
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for SnapshotBudget
impl PartialEq for SnapshotBudget
Source§impl Serialize for SnapshotBudget
impl Serialize for SnapshotBudget
impl Eq for SnapshotBudget
impl StructuralPartialEq for SnapshotBudget
Auto Trait Implementations§
impl Freeze for SnapshotBudget
impl RefUnwindSafe for SnapshotBudget
impl Send for SnapshotBudget
impl Sync for SnapshotBudget
impl Unpin for SnapshotBudget
impl UnsafeUnpin for SnapshotBudget
impl UnwindSafe for SnapshotBudget
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