[][src]Struct transmission::Torrent

pub struct Torrent { /* fields omitted */ }

Representation of a torrent download.

Can be used to start, stop, or get the information of a torrent.

Methods

impl<'a> Torrent[src]

pub fn parse_torrent_file(path: &str) -> TrResult<TorrentInfo>[src]

pub fn build() -> TorrentBuilder[src]

Alias to TorrentBuilder::new()

pub fn start(&self)[src]

Start or resume the torrent

pub fn stop(&self)[src]

Stop (pause) the torrent

pub fn remove(self, with_data: bool)[src]

Removes a torrent from the downloads Consumes the Torrent

pub fn verify(&self)[src]

Verify the torrent

pub fn name(&self) -> &str[src]

This torrent's name

pub fn id(&self) -> i32[src]

The unique ID of the torrent

pub fn stats(&self) -> TorrentStats[src]

All the stats of the torrent as given by Transmission

pub fn info(&self) -> TorrentInfo[src]

pub fn set_ratio(&mut self, limit: f64)[src]

pub fn set_download_dir(&mut self, download_dir: PathBuf)[src]

Trait Implementations

impl AsMut<Torrent> for Torrent[src]

impl Sync for Torrent[src]

impl Clone for Torrent[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Send for Torrent[src]

impl Serialize for Torrent[src]

Blanket Implementations

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

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

type Owned = T

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]