pub struct PeerPipelineSnapshot {
pub known: u32,
pub queued: u32,
pub connecting: u32,
pub live: u32,
pub dead: u32,
}Expand description
Point-in-time snapshot of [PeerPipelineStats] — relocated to
irontide-session-types at M244a; re-exported here so
crate::peer_states::PeerPipelineSnapshot resolves unchanged.
Point-in-time snapshot of the per-torrent peer-pipeline counters.
Exposed through TorrentStats for API consumers and --diagnose output.
Fields§
§known: u32Total number of known peer addresses (all states).
queued: u32Number of peers in the Queued state.
connecting: u32Number of peers in the Connecting state.
live: u32Number of peers in the Live state.
dead: u32Number of peers in the Dead state.
Trait Implementations§
Source§impl Clone for PeerPipelineSnapshot
impl Clone for PeerPipelineSnapshot
Source§fn clone(&self) -> PeerPipelineSnapshot
fn clone(&self) -> PeerPipelineSnapshot
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 PeerPipelineSnapshot
impl Debug for PeerPipelineSnapshot
Source§impl Default for PeerPipelineSnapshot
impl Default for PeerPipelineSnapshot
Source§fn default() -> PeerPipelineSnapshot
fn default() -> PeerPipelineSnapshot
Returns the “default value” for a type. Read more
Source§impl Serialize for PeerPipelineSnapshot
impl Serialize for PeerPipelineSnapshot
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Copy for PeerPipelineSnapshot
Auto Trait Implementations§
impl Freeze for PeerPipelineSnapshot
impl RefUnwindSafe for PeerPipelineSnapshot
impl Send for PeerPipelineSnapshot
impl Sync for PeerPipelineSnapshot
impl Unpin for PeerPipelineSnapshot
impl UnsafeUnpin for PeerPipelineSnapshot
impl UnwindSafe for PeerPipelineSnapshot
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