pub struct DefragmentationStats {
pub memory_freed: u64,
pub blocks_moved: usize,
pub time_taken_ms: u64,
pub fragmentation_before: f32,
pub fragmentation_after: f32,
}Expand description
Defragmentation statistics
Fields§
§memory_freed: u64Memory freed by defragmentation (bytes)
blocks_moved: usizeNumber of memory blocks moved
time_taken_ms: u64Time taken for defragmentation
fragmentation_before: f32Fragmentation ratio before defragmentation
fragmentation_after: f32Fragmentation ratio after defragmentation
Trait Implementations§
Source§impl Clone for DefragmentationStats
impl Clone for DefragmentationStats
Source§fn clone(&self) -> DefragmentationStats
fn clone(&self) -> DefragmentationStats
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 DefragmentationStats
impl Debug for DefragmentationStats
Source§impl<'de> Deserialize<'de> for DefragmentationStats
impl<'de> Deserialize<'de> for DefragmentationStats
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
Auto Trait Implementations§
impl Freeze 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