pub struct CompactionResult {
pub success: bool,
pub duration: Duration,
pub before: FragmentationInfo,
pub after: FragmentationInfo,
pub bytes_moved: u64,
pub allocations_moved: usize,
}Expand description
Compaction result
Fields§
§success: boolWhether compaction was successful
duration: DurationTime taken
before: FragmentationInfoFragmentation before
after: FragmentationInfoFragmentation after
bytes_moved: u64Bytes moved during compaction
allocations_moved: usizeNumber of allocations moved
Trait Implementations§
Source§impl Clone for CompactionResult
impl Clone for CompactionResult
Source§fn clone(&self) -> CompactionResult
fn clone(&self) -> CompactionResult
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 moreAuto Trait Implementations§
impl Freeze for CompactionResult
impl RefUnwindSafe for CompactionResult
impl Send for CompactionResult
impl Sync for CompactionResult
impl Unpin for CompactionResult
impl UnsafeUnpin for CompactionResult
impl UnwindSafe for CompactionResult
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