pub unsafe extern "C" fn tr_torrentId(
    torrent: *const tr_torrent
) -> c_int
Expand description

@brief Returns this torrent’s unique ID.

IDs are good as simple lookup keys, but are not persistent between sessions. If you need that, use tr_info.hash or tr_info.hashString.