pub struct DebugPeerState {
pub addr: SocketAddr,
pub in_flight: u32,
pub target_depth: u32,
pub choking: bool,
pub download_rate: u64,
}Expand description
Per-peer debug state for diagnosing throughput issues.
Fields§
§addr: SocketAddrRemote peer socket address.
in_flight: u32Number of in-flight block requests.
target_depth: u32Current target pipeline depth.
choking: boolWhether the peer is choking us.
download_rate: u64Current download rate in bytes/sec.
Trait Implementations§
Source§impl Clone for DebugPeerState
impl Clone for DebugPeerState
Source§fn clone(&self) -> DebugPeerState
fn clone(&self) -> DebugPeerState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DebugPeerState
impl Debug for DebugPeerState
Auto Trait Implementations§
impl Freeze for DebugPeerState
impl RefUnwindSafe for DebugPeerState
impl Send for DebugPeerState
impl Sync for DebugPeerState
impl Unpin for DebugPeerState
impl UnsafeUnpin for DebugPeerState
impl UnwindSafe for DebugPeerState
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