pub struct Tracker {
pub url: String,
pub tier: i32,
pub updating: bool,
pub msg: String,
pub status: TrackerStatus,
pub peers_count: i32,
pub seeds_count: i32,
pub leeches_count: i32,
pub downloaded_count: i32,
pub next_announce: i64,
pub minimum_announce_interval: i64,
pub endpoints: Vec<TrackerEndpoint>,
}Expand description
Torrent tracker object
This struct contains detailed information about a tracker.
Fields§
§url: StringTracker url
tier: i32Tracker priority tier. Lower tier trackers are tried before higher
tiers. Tier numbers are valid when >= 0, < 0 is used as placeholder
when tier does not exist for special entries (such as DHT).
updating: boolTracker is updating
msg: StringTracker message (there is no way of knowing what this message is - it’s up to tracker admins)
status: TrackerStatusTracker status.
peers_count: i32Number of peers for current torrent, as reported by the tracker
seeds_count: i32Number of seeds for current torrent, as reported by the tracker
leeches_count: i32Number of leeches for current torrent, as reported by the tracker
downloaded_count: i32Number of completed downloads for current torrent, as reported by the tracker
next_announce: i64Next announce time
minimum_announce_interval: i64Minimum announce interval
endpoints: Vec<TrackerEndpoint>Tracker endpoints
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tracker
impl<'de> Deserialize<'de> for Tracker
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
impl StructuralPartialEq for Tracker
Auto Trait Implementations§
impl Freeze for Tracker
impl RefUnwindSafe for Tracker
impl Send for Tracker
impl Sync for Tracker
impl Unpin for Tracker
impl UnsafeUnpin for Tracker
impl UnwindSafe for Tracker
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