Struct Torrent

Source
pub struct Torrent { /* private fields */ }

Implementations§

Source§

impl Torrent

Auto-generated by derive_getters::Getters.

Source

pub fn added_on(&self) -> &u32

Get field added_on from instance of Torrent.

Source

pub fn amount_left(&self) -> &u64

Get field amount_left from instance of Torrent.

Source

pub fn auto_tmm(&self) -> &bool

Get field auto_tmm from instance of Torrent.

Source

pub fn category(&self) -> &String

Get field category from instance of Torrent.

Source

pub fn completed(&self) -> &i64

Get field completed from instance of Torrent.

Source

pub fn completion_on(&self) -> &i32

Get field completion_on from instance of Torrent.

Source

pub fn dl_limit(&self) -> &i64

Get field dl_limit from instance of Torrent.

Source

pub fn dlspeed(&self) -> &i64

Get field dlspeed from instance of Torrent.

Source

pub fn downloaded(&self) -> &i64

Get field downloaded from instance of Torrent.

Source

pub fn downloaded_session(&self) -> &i64

Get field downloaded_session from instance of Torrent.

Source

pub fn eta(&self) -> &i64

Get field eta from instance of Torrent.

Source

pub fn f_l_piece_prio(&self) -> &Option<bool>

Get field f_l_piece_prio from instance of Torrent.

Source

pub fn force_start(&self) -> &bool

Get field force_start from instance of Torrent.

Source

pub fn hash(&self) -> &Hash

Get field hash from instance of Torrent.

Source

pub fn last_activity(&self) -> &i64

Get field last_activity from instance of Torrent.

Source

pub fn magnet_uri(&self) -> &String

Get field magnet_uri from instance of Torrent.

Source

pub fn max_ratio(&self) -> &f64

Get field max_ratio from instance of Torrent.

Source

pub fn max_seeding_time(&self) -> &i64

Get field max_seeding_time from instance of Torrent.

Source

pub fn name(&self) -> &String

Get field name from instance of Torrent.

Source

pub fn num_complete(&self) -> &i64

Get field num_complete from instance of Torrent.

Source

pub fn num_incomplete(&self) -> &i64

Get field num_incomplete from instance of Torrent.

Source

pub fn num_leechs(&self) -> &i64

Get field num_leechs from instance of Torrent.

Source

pub fn num_seeds(&self) -> &i64

Get field num_seeds from instance of Torrent.

Source

pub fn priority(&self) -> &i64

Get field priority from instance of Torrent.

Source

pub fn progress(&self) -> &f64

Get field progress from instance of Torrent.

Source

pub fn ratio(&self) -> &f64

Get field ratio from instance of Torrent.

Source

pub fn ratio_limit(&self) -> &f64

Get field ratio_limit from instance of Torrent.

Source

pub fn save_path(&self) -> &String

Get field save_path from instance of Torrent.

Source

pub fn seeding_time_limit(&self) -> &i64

Get field seeding_time_limit from instance of Torrent.

Source

pub fn seen_complete(&self) -> &i64

Get field seen_complete from instance of Torrent.

Source

pub fn seq_dl(&self) -> &bool

Get field seq_dl from instance of Torrent.

Source

pub fn size(&self) -> &i64

Get field size from instance of Torrent.

Source

pub fn state(&self) -> &State

Get field state from instance of Torrent.

Source

pub fn super_seeding(&self) -> &bool

Get field super_seeding from instance of Torrent.

Source

pub fn tags(&self) -> &String

Get field tags from instance of Torrent.

Source

pub fn time_active(&self) -> &i64

Get field time_active from instance of Torrent.

Source

pub fn total_size(&self) -> &i64

Get field total_size from instance of Torrent.

Source

pub fn tracker(&self) -> &String

Get field tracker from instance of Torrent.

Source

pub fn up_limit(&self) -> &i64

Get field up_limit from instance of Torrent.

Source

pub fn uploaded(&self) -> &i64

Get field uploaded from instance of Torrent.

Source

pub fn uploaded_session(&self) -> &i64

Get field uploaded_session from instance of Torrent.

Source

pub fn upspeed(&self) -> &i64

Get field upspeed from instance of Torrent.

Trait Implementations§

Source§

impl Clone for Torrent

Source§

fn clone(&self) -> Torrent

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Torrent

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for Torrent

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl TorrentApi for Torrent

Source§

fn hash(&self) -> String

Source§

fn properties<'life0, 'life1, 'async_trait>( &'life0 self, api: &'life1 Api, ) -> Pin<Box<dyn Future<Output = Result<TorrentProperties, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn trackers<'life0, 'life1, 'async_trait>( &'life0 self, api: &'life1 Api, ) -> Pin<Box<dyn Future<Output = Result<Vec<Tracker>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn contents<'life0, 'life1, 'async_trait>( &'life0 self, api: &'life1 Api, ) -> Pin<Box<dyn Future<Output = Result<Vec<TorrentInfo>, Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

impl TorrentsApi for Torrent

Source§

fn hashes(&self) -> String

Source§

fn stop<'life0, 'life1, 'async_trait>( &'life0 self, api: &'life1 Api, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn start<'life0, 'life1, 'async_trait>( &'life0 self, api: &'life1 Api, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn delete<'life0, 'life1, 'async_trait>( &'life0 self, api: &'life1 Api, delete_data: bool, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn recheck<'life0, 'life1, 'async_trait>( &'life0 self, api: &'life1 Api, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn set_category<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, api: &'life1 Api, category: &'life2 str, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

fn add_tags<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, api: &'life1 Api, tags: &'life2 [String], ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

fn remove_tags<'life0, 'life1, 'life2, 'async_trait>( &'life0 self, api: &'life1 Api, tags: &'life2 [String], ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait,

Source§

fn bottom_priority<'life0, 'life1, 'async_trait>( &'life0 self, api: &'life1 Api, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Source§

fn top_priority<'life0, 'life1, 'async_trait>( &'life0 self, api: &'life1 Api, ) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

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

Source§

impl<T> ErasedDestructor for T
where T: 'static,