Struct synapse_rpc::resource::Torrent
[−]
[src]
pub struct Torrent { pub id: String, pub name: Option<String>, pub creator: Option<String>, pub comment: Option<String>, pub private: bool, pub path: String, pub created: DateTime<Utc>, pub modified: DateTime<Utc>, pub status: Status, pub error: Option<String>, pub priority: u8, pub progress: f32, pub availability: f32, pub strategy: Strategy, pub rate_up: u64, pub rate_down: u64, pub throttle_up: Option<i64>, pub throttle_down: Option<i64>, pub transferred_up: u64, pub transferred_down: u64, pub peers: u16, pub trackers: u8, pub tracker_urls: Vec<String>, pub size: Option<u64>, pub pieces: Option<u64>, pub piece_size: Option<u32>, pub piece_field: String, pub files: Option<u32>, pub user_data: Value, }
Fields
id: String
name: Option<String>
creator: Option<String>
comment: Option<String>
private: bool
path: String
created: DateTime<Utc>
modified: DateTime<Utc>
status: Status
error: Option<String>
priority: u8
progress: f32
availability: f32
strategy: Strategy
rate_up: u64
rate_down: u64
throttle_up: Option<i64>
throttle_down: Option<i64>
transferred_up: u64
transferred_down: u64
peers: u16
trackers: u8
tracker_urls: Vec<String>
size: Option<u64>
pieces: Option<u64>
piece_size: Option<u32>
piece_field: String
files: Option<u32>
user_data: Value
Methods
impl Torrent
[src]
pub fn update(&mut self, update: SResourceUpdate)
[src]
Trait Implementations
impl Clone for Torrent
[src]
fn clone(&self) -> Torrent
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Torrent
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for Torrent
[src]
fn eq(&self, __arg_0: &Torrent) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Torrent) -> bool
[src]
This method tests for !=
.