pub struct DefragmentationStats {
pub moved_allocations: usize,
pub moved_bytes: u64,
pub freed_blocks: usize,
pub freed_bytes: u64,
pub ignored_allocations: usize,
pub destroyed_allocations: usize,
}Expand description
Actual completed work; proposed or ignored moves are not counted as moved bytes.
Fields§
§moved_allocations: usize§moved_bytes: u64§freed_blocks: usize§freed_bytes: u64§ignored_allocations: usize§destroyed_allocations: usizeImplementations§
Source§impl DefragmentationStats
impl DefragmentationStats
Sourcepub fn set_moved_allocations(self, value: usize) -> Self
pub fn set_moved_allocations(self, value: usize) -> Self
Set moved_allocations and return the updated record.
Sourcepub fn set_moved_bytes(self, value: u64) -> Self
pub fn set_moved_bytes(self, value: u64) -> Self
Set moved_bytes and return the updated record.
Sourcepub fn set_freed_blocks(self, value: usize) -> Self
pub fn set_freed_blocks(self, value: usize) -> Self
Set freed_blocks and return the updated record.
Sourcepub fn set_freed_bytes(self, value: u64) -> Self
pub fn set_freed_bytes(self, value: u64) -> Self
Set freed_bytes and return the updated record.
Sourcepub fn set_ignored_allocations(self, value: usize) -> Self
pub fn set_ignored_allocations(self, value: usize) -> Self
Set ignored_allocations and return the updated record.
Sourcepub fn set_destroyed_allocations(self, value: usize) -> Self
pub fn set_destroyed_allocations(self, value: usize) -> Self
Set destroyed_allocations and return the updated record.
Trait Implementations§
Source§impl Clone for DefragmentationStats
impl Clone for DefragmentationStats
impl Copy for DefragmentationStats
Source§impl Debug for DefragmentationStats
impl Debug for DefragmentationStats
Source§impl Default for DefragmentationStats
impl Default for DefragmentationStats
impl Eq for DefragmentationStats
Source§impl PartialEq for DefragmentationStats
impl PartialEq for DefragmentationStats
impl StructuralPartialEq for DefragmentationStats
Auto Trait Implementations§
impl Forget for DefragmentationStats
impl Freeze for DefragmentationStats
impl Move for DefragmentationStats
impl RefUnwindSafe for DefragmentationStats
impl Send for DefragmentationStats
impl Sync for DefragmentationStats
impl Unpin for DefragmentationStats
impl UnsafeUnpin for DefragmentationStats
impl UnwindSafe for DefragmentationStats
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