Skip to main content

format_state

Function format_state 

Source
pub fn format_state(state: &TorrentState, user_seed_mode: bool) -> &'static str
Expand description

Map a TorrentState variant to its lowercase display label.

When user_seed_mode is true and the torrent is in the Downloading state, returns "seed only" to reflect the user-imposed constraint.