Skip to main content

Crate irontide_format

Crate irontide_format 

Source
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 TorrentState variant to its lowercase display label.