pub struct FragmentationReport {
pub total_files: u32,
pub fragmented_files: u32,
pub total_fragments: u32,
pub most_fragmented: Vec<FileFragmentInfo>,
pub average_fragments: f64,
pub fragmentation_percentage: f64,
}Expand description
Report on filesystem fragmentation.
Fields§
§total_files: u32Total number of files analyzed
fragmented_files: u32Number of fragmented files (more than 1 fragment)
total_fragments: u32Total number of fragments across all files
most_fragmented: Vec<FileFragmentInfo>Files with the most fragmentation, sorted by fragment count descending
average_fragments: f64Average fragments per file
fragmentation_percentage: f64Fragmentation percentage (fragmented files / total files * 100)
Trait Implementations§
Source§impl Clone for FragmentationReport
impl Clone for FragmentationReport
Source§fn clone(&self) -> FragmentationReport
fn clone(&self) -> FragmentationReport
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FragmentationReport
impl RefUnwindSafe for FragmentationReport
impl Send for FragmentationReport
impl Sync for FragmentationReport
impl Unpin for FragmentationReport
impl UnsafeUnpin for FragmentationReport
impl UnwindSafe for FragmentationReport
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