Expand description
Shared human-readable formatting helpers for irontide crates.
Provides consistent string representations for sizes, transfer rates, ETAs, share ratios, and torrent state labels used by the GUI, CLI, and Web UI frontends.
Functionsยง
- format_
eta - Estimate remaining download time given outstanding bytes and current rate.
- format_
rate - Format a byte-per-second rate as a human-readable string.
- format_
ratio - Format the upload/download share ratio.
- format_
size - Format a raw byte count as a human-readable size string.
- format_
state - Map a
TorrentStatevariant to its lowercase display label.