pub struct PeerStats {
pub downloaded: u64,
pub uploaded: u64,
pub download_rate: f64,
pub upload_rate: f64,
pub interested: bool,
pub choking_us: bool,
pub we_interested: bool,
pub we_choking: bool,
pub last_active: Option<Instant>,
}Fields§
§downloaded: u64§uploaded: u64§download_rate: f64§upload_rate: f64§interested: bool§choking_us: bool§we_interested: bool§we_choking: bool§last_active: Option<Instant>Trait Implementations§
Auto Trait Implementations§
impl Freeze for PeerStats
impl RefUnwindSafe for PeerStats
impl Send for PeerStats
impl Sync for PeerStats
impl Unpin for PeerStats
impl UnsafeUnpin for PeerStats
impl UnwindSafe for PeerStats
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more