pub struct QueueCandidate {
pub info_hash: Id20,
pub position: i32,
pub category: QueueCategory,
pub is_active: bool,
pub is_inactive: bool,
pub recently_started: bool,
pub seed_rank: Option<i32>,
}Expand description
Snapshot of a torrent for queue evaluation.
Fields§
§info_hash: Id20Info hash of the torrent under evaluation.
position: i32Current queue position; lower values are evaluated first.
category: QueueCategoryClassification (downloading / seeding / checking) for slot accounting.
is_active: boolWhether the torrent currently occupies an active slot.
is_inactive: boolWhether the torrent is below the slow-transfer threshold; excluded from
the active counts when QueueConfig::dont_count_slow is set.
recently_started: boolRecently started torrents are exempt from being paused (anti-flap).
seed_rank: Option<i32>Swarm demand rank for seeding torrents (higher = more demand). None for non-seeding.
Trait Implementations§
Source§impl Clone for QueueCandidate
impl Clone for QueueCandidate
Source§fn clone(&self) -> QueueCandidate
fn clone(&self) -> QueueCandidate
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 moreAuto Trait Implementations§
impl Freeze for QueueCandidate
impl RefUnwindSafe for QueueCandidate
impl Send for QueueCandidate
impl Sync for QueueCandidate
impl Unpin for QueueCandidate
impl UnsafeUnpin for QueueCandidate
impl UnwindSafe for QueueCandidate
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