Struct transmission_sys::tr_peer_stat
source · #[repr(C)]pub struct tr_peer_stat {Show 24 fields
pub isUTP: u8,
pub isEncrypted: u8,
pub isDownloadingFrom: u8,
pub isUploadingTo: u8,
pub isSeed: u8,
pub peerIsChoked: u8,
pub peerIsInterested: u8,
pub clientIsChoked: u8,
pub clientIsInterested: u8,
pub isIncoming: u8,
pub from: u8,
pub port: tr_port,
pub addr: [c_char; 46],
pub client: [c_char; 80],
pub flagStr: [c_char; 32],
pub progress: f32,
pub rateToPeer_KBps: f64,
pub rateToClient_KBps: f64,
pub blocksToPeer: u32,
pub blocksToClient: u32,
pub cancelsToPeer: u32,
pub cancelsToClient: u32,
pub pendingReqsToClient: c_int,
pub pendingReqsToPeer: c_int,
}
Expand description
tr_peer_stat
Fields
isUTP: u8
isEncrypted: u8
isDownloadingFrom: u8
isUploadingTo: u8
isSeed: u8
peerIsChoked: u8
peerIsInterested: u8
clientIsChoked: u8
clientIsInterested: u8
isIncoming: u8
from: u8
port: tr_port
addr: [c_char; 46]
client: [c_char; 80]
flagStr: [c_char; 32]
progress: f32
rateToPeer_KBps: f64
rateToClient_KBps: f64
blocksToPeer: u32
THESE NEXT FOUR FIELDS ARE EXPERIMENTAL. Don’t rely on them; they’ll probably go away
blocksToClient: u32
cancelsToPeer: u32
cancelsToClient: u32
pendingReqsToClient: c_int
pendingReqsToPeer: c_int
Trait Implementations
sourceimpl Clone for tr_peer_stat
impl Clone for tr_peer_stat
sourcefn clone(&self) -> tr_peer_stat
fn clone(&self) -> tr_peer_stat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreimpl Copy for tr_peer_stat
Auto Trait Implementations
impl RefUnwindSafe for tr_peer_stat
impl Send for tr_peer_stat
impl Sync for tr_peer_stat
impl Unpin for tr_peer_stat
impl UnwindSafe for tr_peer_stat
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more