pub struct SwarmMetadata {
pub downloaded: u32,
pub complete: u32,
pub incomplete: u32,
}Expand description
Swarm statistics for one torrent. Swarm metadata dictionary in the scrape response.
Fields§
§downloaded: u32(i.e completed): The number of peers that have ever completed downloading
complete: u32(i.e seeders): The number of active peers that have completed downloading (seeders)
incomplete: u32(i.e leechers): The number of active peers that have not completed downloading (leechers)
Implementations§
Source§impl SwarmMetadata
impl SwarmMetadata
Source§impl SwarmMetadata
impl SwarmMetadata
Trait Implementations§
Source§impl Clone for SwarmMetadata
impl Clone for SwarmMetadata
Source§fn clone(&self) -> SwarmMetadata
fn clone(&self) -> SwarmMetadata
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 SwarmMetadata
impl Debug for SwarmMetadata
Source§impl Default for SwarmMetadata
impl Default for SwarmMetadata
Source§fn default() -> SwarmMetadata
fn default() -> SwarmMetadata
Returns the “default value” for a type. Read more
Source§impl PartialEq for SwarmMetadata
impl PartialEq for SwarmMetadata
impl Copy for SwarmMetadata
impl StructuralPartialEq for SwarmMetadata
Auto Trait Implementations§
impl Freeze for SwarmMetadata
impl RefUnwindSafe for SwarmMetadata
impl Send for SwarmMetadata
impl Sync for SwarmMetadata
impl Unpin for SwarmMetadata
impl UnwindSafe for SwarmMetadata
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more