pub struct VirtualBlockStats {
pub size: u64,
pub allocation_count: usize,
pub allocated_bytes: u64,
pub free_bytes: u64,
pub free_region_count: usize,
pub largest_free_region: u64,
}Expand description
Host metadata statistics. Alignment holes remain free, not reserved to a token. Linear free spans can include holes that placement cannot immediately reuse.
Fields§
§size: u64§allocation_count: usize§allocated_bytes: u64§free_bytes: u64§free_region_count: usize§largest_free_region: u64Implementations§
Source§impl VirtualBlockStats
impl VirtualBlockStats
Sourcepub fn set_allocation_count(self, value: usize) -> Self
pub fn set_allocation_count(self, value: usize) -> Self
Set allocation_count and return the updated record.
Sourcepub fn set_allocated_bytes(self, value: u64) -> Self
pub fn set_allocated_bytes(self, value: u64) -> Self
Set allocated_bytes and return the updated record.
Sourcepub fn set_free_bytes(self, value: u64) -> Self
pub fn set_free_bytes(self, value: u64) -> Self
Set free_bytes and return the updated record.
Sourcepub fn set_free_region_count(self, value: usize) -> Self
pub fn set_free_region_count(self, value: usize) -> Self
Set free_region_count and return the updated record.
Sourcepub fn set_largest_free_region(self, value: u64) -> Self
pub fn set_largest_free_region(self, value: u64) -> Self
Set largest_free_region and return the updated record.
Trait Implementations§
Source§impl Clone for VirtualBlockStats
impl Clone for VirtualBlockStats
impl Copy for VirtualBlockStats
Source§impl Debug for VirtualBlockStats
impl Debug for VirtualBlockStats
impl Eq for VirtualBlockStats
Source§impl PartialEq for VirtualBlockStats
impl PartialEq for VirtualBlockStats
impl StructuralPartialEq for VirtualBlockStats
Auto Trait Implementations§
impl Forget for VirtualBlockStats
impl Freeze for VirtualBlockStats
impl Move for VirtualBlockStats
impl RefUnwindSafe for VirtualBlockStats
impl Send for VirtualBlockStats
impl Sync for VirtualBlockStats
impl Unpin for VirtualBlockStats
impl UnsafeUnpin for VirtualBlockStats
impl UnwindSafe for VirtualBlockStats
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