pub enum TorrentState {
FetchingMetadata,
Checking,
Downloading,
Complete,
Seeding,
Paused,
Queued,
Stopped,
Sharing,
}Expand description
Current state of a torrent.
Variants§
FetchingMetadata
Waiting for peers to send torrent metadata via BEP 9.
Checking
Verifying existing data on disk against piece hashes.
Downloading
Actively downloading pieces from peers.
Complete
All pieces downloaded, awaiting transition to seeding.
Seeding
Upload-only: all pieces verified, serving to other peers.
Paused
Manually paused by the user. No peer connections maintained.
Queued
Queued by auto-manage. Peers disconnected; queue evaluator will resume when a slot opens.
Stopped
Removed from the session. Terminal state.
Sharing
Share mode: relay pieces in memory without writing to disk.
Trait Implementations§
Source§impl Clone for TorrentState
impl Clone for TorrentState
Source§fn clone(&self) -> TorrentState
fn clone(&self) -> TorrentState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TorrentState
impl Debug for TorrentState
Source§impl<'de> Deserialize<'de> for TorrentState
impl<'de> Deserialize<'de> for TorrentState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TorrentState
impl PartialEq for TorrentState
Source§fn eq(&self, other: &TorrentState) -> bool
fn eq(&self, other: &TorrentState) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TorrentState
impl Serialize for TorrentState
impl Copy for TorrentState
impl Eq for TorrentState
impl StructuralPartialEq for TorrentState
Auto Trait Implementations§
impl Freeze for TorrentState
impl RefUnwindSafe for TorrentState
impl Send for TorrentState
impl Sync for TorrentState
impl Unpin for TorrentState
impl UnsafeUnpin for TorrentState
impl UnwindSafe for TorrentState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.