Struct torznab::Torrent [−][src]
pub struct Torrent {
pub name: String,
pub size: u64,
pub categories: Vec<u32, Global>,
pub link: String,
pub seeders: Option<u16>,
pub leechers: Option<u16>,
pub minimum_ratio: Option<f32>,
pub minimum_seedtime: Option<Duration>,
}
Expand description
Re-exported from torrent-common
Represents a torrent in a tracker somewhere.
Fields
name: String
size: u64
categories: Vec<u32, Global>
link: String
seeders: Option<u16>
leechers: Option<u16>
minimum_ratio: Option<f32>
minimum_seedtime: Option<Duration>
Implementations
Re-exported from torrent-common
Constructs a new Torrent
from values. If the parse-names
or require-parse-names
feature is enabled, will include metadata; if the require-parse-names
feature is enabled, parsing is non-optional, and the function will return an error.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Torrent
impl UnwindSafe for Torrent
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more