[][src]Struct transmission_rs::Torrent

pub struct Torrent {
    pub id: u16,
    pub error: u8,
    pub error_string: String,
    pub eta: i64,
    pub is_finished: bool,
    pub left_until_done: u64,
    pub name: String,
    pub peers_getting_from_us: u16,
    pub peers_sending_to_us: u16,
    pub rate_download: u32,
    pub rate_upload: u32,
    pub size_when_done: u64,
    pub status: u8,
    pub upload_ratio: f32,
}

Fields

id: u16error: u8error_string: Stringeta: i64is_finished: boolleft_until_done: u64name: Stringpeers_getting_from_us: u16peers_sending_to_us: u16rate_download: u32rate_upload: u32size_when_done: u64status: u8upload_ratio: f32

Trait Implementations

impl Clone for Torrent[src]

impl Debug for Torrent[src]

impl<'de> Deserialize<'de> for Torrent[src]

impl Serialize for Torrent[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: for<'de> Deserialize<'de>, 
[src]

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

impl<T> Instrument 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.