Skip to main content

from_report

Function from_report 

Source
pub fn from_report(
    report: &DiskReport,
    name: &str,
    size_bytes: u64,
) -> PhysicalDisk
Expand description

Convert a disk analysis into a PhysicalDisk for rendering. name labels the disk (typically the image path) and size_bytes is the decoded media size used for the bar’s denominator and trailing free space.