[−][src]Struct qbittorrent::data::Torrent
generic torrent information returned from get_all_torrents()
added_on integer Time (Unix Epoch) when the torrent was added to the client amount_left integer Amount of data left to download (bytes) auto_tmm bool Whether this torrent is managed by Automatic Torrent Management category string Category of the torrent completed integer Amount of transfer data completed (bytes) completion_on integer Time (Unix Epoch) when the torrent completed dl_limit integer Torrent download speed limit (bytes/s). -1 if ulimited. dlspeed integer Torrent download speed (bytes/s) downloaded integer Amount of data downloaded downloaded_session integer Amount of data downloaded this session eta integer Torrent ETA (seconds) f_l_piece_prio bool True if first last piece are prioritized force_start bool True if force start is enabled for this torrent hash string Torrent hash last_activity integer Last time (Unix Epoch) when a chunk was downloaded/uploaded magnet_uri string Magnet URI corresponding to this torrent max_ratio float Maximum share ratio until torrent is stopped from seeding/uploading max_seeding_time integer Maximum seeding time (seconds) until torrent is stopped from seeding name string Torrent name num_complete integer Number of seeds in the swarm num_incomplete integer Number of leechers in the swarm num_leechs integer Number of leechers connected to num_seeds integer Number of seeds connected to priority integer Torrent priority. Returns -1 if queuing is disabled or torrent is in seed mode progress float Torrent progress (percentage/100) ratio float Torrent share ratio. Max ratio value: 9999. ratio_limit float TODO (what is different from max_ratio?) save_path string Path where this torrent's data is stored seeding_time_limit integer TODO (what is different from max_seeding_time?) seen_complete integer Time (Unix Epoch) when this torrent was last seen complete seq_dl bool True if sequential download is enabled size integer Total size (bytes) of files selected for download state string Torrent state. See table here below for the possible values super_seeding bool True if super seeding is enabled tags string Comma-concatenated tag list of the torrent time_active integer Total active time (seconds) total_size integer Total size (bytes) of all file in this torrent (including unselected ones) tracker string The first tracker with working status. (TODO: what is returned if no tracker is working?) up_limit integer Torrent upload speed limit (bytes/s). -1 if ulimited. uploaded integer Amount of data uploaded uploaded_session integer Amount of data uploaded this session upspeed integer Torrent upload speed (bytes/s)
Methods
impl Torrent
[src]
pub fn added_on(&self) -> &u32
[src]
pub fn amount_left(&self) -> &u64
[src]
pub fn auto_tmm(&self) -> &bool
[src]
pub fn category(&self) -> &String
[src]
pub fn completed(&self) -> &i64
[src]
pub fn completion_on(&self) -> &u32
[src]
pub fn dl_limit(&self) -> &i64
[src]
pub fn dlspeed(&self) -> &i64
[src]
pub fn downloaded(&self) -> &i64
[src]
pub fn downloaded_session(&self) -> &i64
[src]
pub fn eta(&self) -> &i64
[src]
pub fn f_l_piece_prio(&self) -> &Option<bool>
[src]
pub fn force_start(&self) -> &bool
[src]
pub fn hash(&self) -> &Hash
[src]
pub fn last_activity(&self) -> &u64
[src]
pub fn magnet_uri(&self) -> &String
[src]
pub fn max_ratio(&self) -> &f64
[src]
pub fn max_seeding_time(&self) -> &i64
[src]
pub fn name(&self) -> &String
[src]
pub fn num_complete(&self) -> &i64
[src]
pub fn num_incomplete(&self) -> &i64
[src]
pub fn num_leechs(&self) -> &i64
[src]
pub fn num_seeds(&self) -> &i64
[src]
pub fn priority(&self) -> &i64
[src]
pub fn progress(&self) -> &f64
[src]
pub fn ratio(&self) -> &f64
[src]
pub fn ratio_limit(&self) -> &f64
[src]
pub fn save_path(&self) -> &String
[src]
pub fn seeding_time_limit(&self) -> &i64
[src]
pub fn seen_complete(&self) -> &i64
[src]
pub fn seq_dl(&self) -> &bool
[src]
pub fn size(&self) -> &i64
[src]
pub fn state(&self) -> &State
[src]
pub fn super_seeding(&self) -> &bool
[src]
pub fn tags(&self) -> &String
[src]
pub fn time_active(&self) -> &i64
[src]
pub fn total_size(&self) -> &i64
[src]
pub fn tracker(&self) -> &String
[src]
pub fn up_limit(&self) -> &i64
[src]
pub fn uploaded(&self) -> &i64
[src]
pub fn uploaded_session(&self) -> &i64
[src]
pub fn upspeed(&self) -> &i64
[src]
Trait Implementations
impl Clone for Torrent
[src]
impl Debug for Torrent
[src]
impl<'de> Deserialize<'de> for Torrent
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Pause<Api> for Torrent
[src]
fn pause<'life0, 'life1, 'async_trait>(
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Resume<Api> for Torrent
[src]
fn resume<'life0, 'life1, 'async_trait>(
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
impl Tags<Api, [String]> for Torrent
[src]
fn add_tag<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
api: &'life1 Api,
tags: &'life2 [String]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api,
tags: &'life2 [String]
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
impl TorrentData<Api> for Torrent
[src]
fn properties<'life0, 'life1, 'async_trait>(
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<TorrentProperties, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<TorrentProperties, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn trackers<'life0, 'life1, 'async_trait>(
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<Vec<Tracker>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
api: &'life1 Api
) -> Pin<Box<dyn Future<Output = Result<Vec<Tracker>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn contents<'a, 'async_trait>(
&'a self,
api: &'a Api
) -> Pin<Box<dyn Future<Output = Result<Vec<TorrentInfo<'a>>, Error>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
[src]
&'a self,
api: &'a Api
) -> Pin<Box<dyn Future<Output = Result<Vec<TorrentInfo<'a>>, Error>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
impl TorrentData<Torrent> for Api
[src]
fn properties<'life0, 'life1, 'async_trait>(
&'life0 self,
torrent: &'life1 Torrent
) -> Pin<Box<dyn Future<Output = Result<TorrentProperties, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
torrent: &'life1 Torrent
) -> Pin<Box<dyn Future<Output = Result<TorrentProperties, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn trackers<'life0, 'life1, 'async_trait>(
&'life0 self,
torrent: &'life1 Torrent
) -> Pin<Box<dyn Future<Output = Result<Vec<Tracker>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
torrent: &'life1 Torrent
) -> Pin<Box<dyn Future<Output = Result<Vec<Tracker>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn contents<'a, 'async_trait>(
&'a self,
torrent: &'a Torrent
) -> Pin<Box<dyn Future<Output = Result<Vec<TorrentInfo<'a>>, Error>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
[src]
&'a self,
torrent: &'a Torrent
) -> Pin<Box<dyn Future<Output = Result<Vec<TorrentInfo<'a>>, Error>> + Send + 'async_trait>> where
'a: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl RefUnwindSafe for Torrent
impl Send for Torrent
impl Sync for Torrent
impl Unpin for Torrent
impl UnwindSafe for Torrent
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,