[][src]Struct qbittorrent::data::Torrent

pub struct Torrent { /* fields omitted */ }

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]

impl Pause<Api> for Torrent[src]

impl Resume<Api> for Torrent[src]

impl Tags<Api, [String]> for Torrent[src]

impl TorrentData<Api> for Torrent[src]

impl TorrentData<Torrent> for Api[src]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.