pub fn goodput_pretty(&self) -> String {
        let goodput_bytes = self.goodput_bytes();
        const KIB: u64 = 1024;
        const MIB: u64 = 1024 * KIB;
        const GIB: u64 = 1024 * MIB;
        if goodput_bytes >= 10 * GIB {
            format!("{}GiB", goodput_bytes / GIB)
        } else if goodput_bytes >= 10 * MIB {
            format!("{}MiB", goodput_bytes / MIB)
        } else if goodput_bytes >= 10 * KIB {
            format!("{}KiB", goodput_bytes / KIB)
        } else {
            format!("{}B", goodput_bytes)
        }
    }
/// Returns a more easily human readable version of [Self::goodput_bytes].
Returns a more easily human readable version of [Self::goodput_bytes].
Returns a more easily human readable version of [ Self :: goodput_bytes ] .
pub fn goodput_pretty(&self) -> String {
        let goodput_bytes = self.goodput_bytes();
        const KIB: u64 = 1024;
        const MIB: u64 = 1024 * KIB;
        const GIB: u64 = 1024 * MIB;
        if goodput_bytes >= 10 * GIB {
            format!("{}GiB", goodput_bytes / GIB)
        } else if goodput_bytes >= 10 * MIB {
            format!("{}MiB", goodput_bytes / MIB)
        } else if goodput_bytes >= 10 * KIB {
            format!("{}KiB", goodput_bytes / KIB)
        } else {
            format!("{}B", goodput_bytes)
        }
    }
pub fn goodput_pretty ( & self ) -> String { let goodput_bytes = self . goodput_bytes ( ) ; const KIB : u64 = 1024 ; const MIB : u64 = 1024 * KIB ; const GIB : u64 = 1024 * MIB ; if goodput_bytes >= 10 * GIB { format ! ( " " goodput_bytes GIB ) } else if goodput_bytes >= 10 * MIB { format ! ( " " goodput_bytes MIB ) } else if goodput_bytes >= 10 * KIB { format ! ( " " goodput_bytes KIB ) } else { format ! ( " " goodput_bytes ) } }
Returns a more easily human readable version of [Self::goodput_bytes].
Returns a more easily human readable version of [ Self :: goodput_bytes ] .
&self
&self