pub struct BudgetReport {
pub ok: bool,
pub total_bytes: u64,
pub total_budget: u64,
pub per_shard_budget: u64,
pub shards: Vec<ShardSize>,
pub over_total: bool,
}Expand description
Result of check_budget. ok is true iff neither the total
nor any individual shard exceeds its configured cap.
Fields§
§ok: bool§total_bytes: u64§total_budget: u64§per_shard_budget: u64§shards: Vec<ShardSize>§over_total: boolTrue when total_bytes > total_budget.
Trait Implementations§
Source§impl Clone for BudgetReport
impl Clone for BudgetReport
Auto Trait Implementations§
impl Freeze for BudgetReport
impl RefUnwindSafe for BudgetReport
impl Send for BudgetReport
impl Sync for BudgetReport
impl Unpin for BudgetReport
impl UnsafeUnpin for BudgetReport
impl UnwindSafe for BudgetReport
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