pub struct Torrent {Show 45 fields
pub added_on: Option<i64>,
pub amount_left: Option<i64>,
pub auto_tmm: Option<bool>,
pub availability: Option<f64>,
pub category: Option<String>,
pub completed: Option<i64>,
pub completion_on: Option<i64>,
pub content_path: Option<String>,
pub dl_limit: Option<i64>,
pub dlspeed: Option<i64>,
pub downloaded: Option<i64>,
pub downloaded_session: Option<i64>,
pub eta: Option<i64>,
pub f_l_piece_prio: Option<bool>,
pub force_start: Option<bool>,
pub hash: Option<String>,
pub last_activity: Option<i64>,
pub magnet_uri: Option<String>,
pub max_ratio: Option<f64>,
pub max_seeding_time: Option<i64>,
pub name: Option<String>,
pub num_complete: Option<i64>,
pub num_incomplete: Option<i64>,
pub num_leechs: Option<i64>,
pub num_seeds: Option<i64>,
pub priority: Option<i64>,
pub progress: Option<f64>,
pub ratio: Option<f64>,
pub ratio_limit: Option<f64>,
pub save_path: Option<String>,
pub seeding_time: Option<i64>,
pub seeding_time_limit: Option<i64>,
pub seen_complete: Option<i64>,
pub seq_dl: Option<bool>,
pub size: Option<i64>,
pub state: Option<State>,
pub super_seeding: Option<bool>,
pub tags: Option<String>,
pub time_active: Option<i64>,
pub total_size: Option<i64>,
pub tracker: Option<String>,
pub up_limit: Option<i64>,
pub uploaded: Option<i64>,
pub uploaded_session: Option<i64>,
pub upspeed: Option<i64>,
}
Fields§
§added_on: Option<i64>
Time (Unix Epoch) when the torrent was added to the client
amount_left: Option<i64>
Amount of data left to download (bytes)
auto_tmm: Option<bool>
Whether this torrent is managed by Automatic Torrent Management
availability: Option<f64>
Percentage of file pieces currently available
category: Option<String>
Category of the torrent
completed: Option<i64>
Amount of transfer data completed (bytes)
completion_on: Option<i64>
Time (Unix Epoch) when the torrent completed
content_path: Option<String>
Absolute path of torrent content (root path for multifile torrents, absolute file path for singlefile torrents)
dl_limit: Option<i64>
Torrent download speed limit (bytes/s). -1
if unlimited.
dlspeed: Option<i64>
Torrent download speed (bytes/s)
downloaded: Option<i64>
Amount of data downloaded
downloaded_session: Option<i64>
Amount of data downloaded this session
eta: Option<i64>
Torrent ETA (seconds)
f_l_piece_prio: Option<bool>
True if first last piece are prioritized
force_start: Option<bool>
True if force start is enabled for this torrent
hash: Option<String>
Torrent hash
last_activity: Option<i64>
Last time (Unix Epoch) when a chunk was downloaded/uploaded
magnet_uri: Option<String>
Magnet URI corresponding to this torrent
max_ratio: Option<f64>
Maximum share ratio until torrent is stopped from seeding/uploading
max_seeding_time: Option<i64>
Maximum seeding time (seconds) until torrent is stopped from seeding
name: Option<String>
Torrent name
num_complete: Option<i64>
Number of seeds in the swarm
num_incomplete: Option<i64>
Number of leechers in the swarm
num_leechs: Option<i64>
Number of leechers connected to
num_seeds: Option<i64>
Number of seeds connected to
priority: Option<i64>
Torrent priority. Returns -1 if queuing is disabled or torrent is in seed mode
progress: Option<f64>
Torrent progress (percentage/100)
ratio: Option<f64>
Torrent share ratio. Max ratio value: 9999.
ratio_limit: Option<f64>
§save_path: Option<String>
Path where this torrent’s data is stored
seeding_time: Option<i64>
Torrent elapsed time while complete (seconds)
seeding_time_limit: Option<i64>
seeding_time_limit is a per torrent setting, when Automatic Torrent Management is disabled, furthermore then max_seeding_time is set to seeding_time_limit for this torrent. If Automatic Torrent Management is enabled, the value is -2. And if max_seeding_time is unset it have a default value -1.
seen_complete: Option<i64>
Time (Unix Epoch) when this torrent was last seen complete
seq_dl: Option<bool>
True if sequential download is enabled
size: Option<i64>
Total size (bytes) of files selected for download
state: Option<State>
Torrent state. See table here below for the possible values
super_seeding: Option<bool>
True if super seeding is enabled
Comma-concatenated tag list of the torrent
time_active: Option<i64>
Total active time (seconds)
total_size: Option<i64>
Total size (bytes) of all file in this torrent (including unselected ones)
tracker: Option<String>
The first tracker with working status. Returns empty String if no tracker is working.
up_limit: Option<i64>
Torrent upload speed limit (bytes/s). -1
if unlimited.
uploaded: Option<i64>
Amount of data uploaded
uploaded_session: Option<i64>
Amount of data uploaded this session
upspeed: Option<i64>
Torrent upload speed (bytes/:,)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Torrent
impl<'de> Deserialize<'de> for Torrent
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>,
impl StructuralPartialEq for Torrent
Auto Trait Implementations§
impl Freeze for Torrent
impl RefUnwindSafe for Torrent
impl Send for Torrent
impl Sync for Torrent
impl Unpin for Torrent
impl UnwindSafe for Torrent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moreSource§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.Source§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.