pub struct TrackerInfo {
pub url: String,
pub tier: usize,
pub status: TrackerStatus,
pub seeders: Option<u32>,
pub leechers: Option<u32>,
pub downloaded: Option<u32>,
pub next_announce_secs: u64,
pub consecutive_failures: u32,
}Expand description
Public info about a single tracker.
Fields§
§url: StringTracker announce URL.
tier: usizeTier index (lower = higher priority).
status: TrackerStatusCurrent status of this tracker.
seeders: Option<u32>Number of seeders reported by the tracker (from scrape).
leechers: Option<u32>Number of leechers reported by the tracker (from scrape).
downloaded: Option<u32>Total completed downloads reported by the tracker (from scrape).
next_announce_secs: u64Seconds until the next scheduled announce.
consecutive_failures: u32Number of consecutive announce failures.
Trait Implementations§
Source§impl Clone for TrackerInfo
impl Clone for TrackerInfo
Source§fn clone(&self) -> TrackerInfo
fn clone(&self) -> TrackerInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 TrackerInfo
impl Debug for TrackerInfo
Auto Trait Implementations§
impl Freeze for TrackerInfo
impl RefUnwindSafe for TrackerInfo
impl Send for TrackerInfo
impl Sync for TrackerInfo
impl Unpin for TrackerInfo
impl UnsafeUnpin for TrackerInfo
impl UnwindSafe for TrackerInfo
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