Struct synapse_rpc::resource::Peer
[−]
[src]
pub struct Peer { pub id: String, pub torrent_id: String, pub client_id: String, pub ip: String, pub rate_up: u64, pub rate_down: u64, pub availability: f32, pub user_data: Value, }
Fields
id: String
torrent_id: String
client_id: String
ip: String
rate_up: u64
rate_down: u64
availability: f32
user_data: Value
Methods
impl Peer
[src]
fn update(&mut self, update: &SResourceUpdate)
[src]
Trait Implementations
impl Clone for Peer
[src]
fn clone(&self) -> Peer
[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 Peer
[src]
impl Default for Peer
[src]
impl PartialEq for Peer
[src]
fn eq(&self, __arg_0: &Peer) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Peer) -> bool
[src]
This method tests for !=
.