#[repr(u8)]pub enum TorrentState {
CheckingFiles = 0,
DownloadingMetadata = 1,
Downloading = 2,
Finished = 3,
Seeding = 4,
CheckingResumeData = 7,
}Expand description
The missing enums are unused enums from versions of libtorrent before 1.2
Variants§
CheckingFiles = 0
The torrent is in the queue for being checked. But there currently is another torrent that are being checked. This torrent will wait for its turn. The torrent has not started its download yet, and is currently checking existing files.
DownloadingMetadata = 1
The torrent is trying to download metadata from peers. This implies the ut_metadata extension is in use.
Downloading = 2
The torrent is being downloaded. This is the state most torrents will be in most of the time. The progress meter will tell how much of the files that has been downloaded.
Finished = 3
In this state the torrent has finished downloading but still doesn’t have the entire torrent. i.e. some pieces are filtered and won’t get downloaded.
Seeding = 4
In this state the torrent has finished downloading and is a pure seeder.
CheckingResumeData = 7
If the torrent was started in full allocation mode, this indicates that the (disk) storage for the torrent is allocated. The torrent is currently checking the fast resume data and comparing it to the files on disk. This is typically completed in a fraction of a second, but if you add a large number of torrents at once, they will queue up.
Trait Implementations§
Source§impl Clone for TorrentState
impl Clone for TorrentState
Source§fn clone(&self) -> TorrentState
fn clone(&self) -> TorrentState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more