pub struct BudgetSnapshot {
pub source: BudgetSource,
pub heap_count: u32,
pub heaps: [HeapBudget; 16],
}Fields§
§source: BudgetSource§heap_count: u32§heaps: [HeapBudget; 16]Implementations§
Source§impl BudgetSnapshot
impl BudgetSnapshot
Sourcepub fn set_source(self, value: BudgetSource) -> Self
pub fn set_source(self, value: BudgetSource) -> Self
Set source and return the updated record.
Sourcepub fn set_heap_count(self, value: u32) -> Self
pub fn set_heap_count(self, value: u32) -> Self
Set heap_count and return the updated record.
Sourcepub fn set_heaps(self, value: [HeapBudget; 16]) -> Self
pub fn set_heaps(self, value: [HeapBudget; 16]) -> Self
Set heaps and return the updated record.
Trait Implementations§
Source§impl Clone for BudgetSnapshot
impl Clone for BudgetSnapshot
impl Copy for BudgetSnapshot
Source§impl Debug for BudgetSnapshot
impl Debug for BudgetSnapshot
Source§impl Default for BudgetSnapshot
impl Default for BudgetSnapshot
impl Eq for BudgetSnapshot
Source§impl PartialEq for BudgetSnapshot
impl PartialEq for BudgetSnapshot
impl StructuralPartialEq for BudgetSnapshot
Auto Trait Implementations§
impl Forget for BudgetSnapshot
impl Freeze for BudgetSnapshot
impl Move for BudgetSnapshot
impl RefUnwindSafe for BudgetSnapshot
impl Send for BudgetSnapshot
impl Sync for BudgetSnapshot
impl Unpin for BudgetSnapshot
impl UnsafeUnpin for BudgetSnapshot
impl UnwindSafe for BudgetSnapshot
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