Struct bip_utracker::scrape::ScrapeStats
[−]
[src]
pub struct ScrapeStats { /* fields omitted */ }
Status for a given InfoHash.
Methods
impl ScrapeStats
[src]
fn new(seeders: i32, downloaded: i32, leechers: i32) -> ScrapeStats
Create a new ScrapeStats.
fn num_seeders(&self) -> i32
Current number of seeders.
fn num_downloads(&self) -> i32
Number of times it has been downloaded.
fn num_leechers(&self) -> i32
Current number of leechers.
Trait Implementations
impl Copy for ScrapeStats
[src]
impl Clone for ScrapeStats
[src]
fn clone(&self) -> ScrapeStats
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for ScrapeStats
[src]
impl PartialEq for ScrapeStats
[src]
fn eq(&self, __arg_0: &ScrapeStats) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ScrapeStats) -> bool
This method tests for !=
.