Skip to main content

DhtRuntimeSnapshot

Struct DhtRuntimeSnapshot 

Source
pub struct DhtRuntimeSnapshot {
Show 58 fields pub hashes_received: u64, pub hash_ingress_dropped: u64, pub hash_ingress_queue_depth: usize, pub hash_ingress_queue_capacity: usize, pub crawl_priority_queue_depth: usize, pub crawl_priority_queue_capacity: usize, pub crawl_discovery_queue_depth: usize, pub crawl_discovery_queue_capacity: usize, pub metadata_queue_depth: usize, pub metadata_queue_max: usize, pub metadata_in_flight: usize, pub metadata_queue_inserted: u64, pub metadata_queue_deduplicated: u64, pub metadata_queue_evicted: u64, pub metadata_queue_stale: u64, pub metadata_races_started: u64, pub metadata_peer_candidates: u64, pub metadata_live_peer_joins: u64, pub metadata_peer_canceled: u64, pub peer_lookup_requested: u64, pub peer_lookup_started: u64, pub peer_lookup_rate_limited: u64, pub peer_lookup_empty: u64, pub peer_lookup_queries: u64, pub peer_lookup_responses: u64, pub peer_lookup_timeouts: u64, pub peer_lookup_send_failures: u64, pub peer_lookup_peers_found: u64, pub peer_lookup_response_dropped: u64, pub peer_lookup_output_dropped: u64, pub metadata_peer_attempts: u64, pub metadata_peer_succeeded: u64, pub metadata_peer_failed: u64, pub metadata_peer_timeouts: u64, pub metadata_connect_failed: u64, pub metadata_no_extension: u64, pub metadata_peer_failure_cache_hits: u64, pub metadata_peer_failure_cache_entries: usize, pub node_pool_size: usize, pub node_pool_capacity: usize, pub node_pool_low_watermark: usize, pub find_node_in_flight: usize, pub find_node_in_flight_max: usize, pub find_node_effective_rate_per_sec: u32, pub queries_new: u64, pub queries_revisit: u64, pub queries_bootstrap: u64, pub responses: u64, pub unmatched_responses: u64, pub timeouts: u64, pub send_failures: u64, pub crawl_events_dropped_response: u64, pub crawl_events_dropped_discovered: u64, pub udp_received: u64, pub udp_queue_full: u64, pub udp_invalid: u64, pub udp_responses_rate_limited: u64, pub udp_responses_priority_reserved: u64,
}
Expand description

Point-in-time view returned by DhtRuntimeStats::snapshot.

Fields§

§hashes_received: u64

Valid announce hashes observed before ingress publication.

§hash_ingress_dropped: u64

Hashes dropped because bounded ingress was full.

§hash_ingress_queue_depth: usize

Current hash-ingress queue depth.

§hash_ingress_queue_capacity: usize

Configured hash-ingress queue capacity.

§crawl_priority_queue_depth: usize

Current priority crawl-event depth.

§crawl_priority_queue_capacity: usize

Configured priority crawl-event capacity.

§crawl_discovery_queue_depth: usize

Current discovered-node event depth.

§crawl_discovery_queue_capacity: usize

Configured discovered-node event capacity.

§metadata_queue_depth: usize

Deduplicated pending Metadata Hashes.

§metadata_queue_max: usize

Configured pending Metadata capacity.

§metadata_in_flight: usize

Current Metadata jobs.

§metadata_queue_inserted: u64

Unique Hash insertions, including insertions that evicted an older Hash.

§metadata_queue_deduplicated: u64

Duplicate Hash updates merged into existing entries.

§metadata_queue_evicted: u64

Oldest Hashes evicted by newer events.

§metadata_queue_stale: u64

Events rejected or expired because they were stale.

§metadata_races_started: u64

Metadata Peer races started after admission.

§metadata_peer_candidates: u64

Distinct Peer candidates launched into Metadata races.

§metadata_live_peer_joins: u64

Peer candidates added while a Metadata race was already running.

§metadata_peer_canceled: u64

Losing Peer attempts canceled after another Peer succeeded.

§peer_lookup_requested: u64

Active get_peers lookup requests received from Metadata jobs.

§peer_lookup_started: u64

Active get_peers lookups admitted by the bounded rate limiter.

§peer_lookup_rate_limited: u64

Active lookup requests rejected by concurrency or rate limits.

§peer_lookup_empty: u64

Active lookup requests skipped because the routing snapshot was empty.

§peer_lookup_queries: u64

Active get_peers UDP queries sent.

§peer_lookup_responses: u64

Matched active get_peers responses.

§peer_lookup_timeouts: u64

Active get_peers queries that timed out.

§peer_lookup_send_failures: u64

Active get_peers UDP sends that failed immediately.

§peer_lookup_peers_found: u64

Unique Peer endpoints fed back into Metadata scheduling.

§peer_lookup_response_dropped: u64

Tagged lookup responses dropped before reaching the lookup actor.

§peer_lookup_output_dropped: u64

Discovered Peer endpoints dropped because Hash ingress was full.

§metadata_peer_attempts: u64

Real Peer network attempts.

§metadata_peer_succeeded: u64

Successful Peer downloads and parses.

§metadata_peer_failed: u64

Failed real Peer attempts.

§metadata_peer_timeouts: u64

End-to-end Peer timeouts.

§metadata_connect_failed: u64

Peer connection failures.

§metadata_no_extension: u64

Peers without extension-protocol support.

§metadata_peer_failure_cache_hits: u64

Peer failure-cache skips.

§metadata_peer_failure_cache_entries: usize

Current Peer failure-cache entries.

§node_pool_size: usize

Current strict FIFO crawl-pool size.

§node_pool_capacity: usize

Configured FIFO capacity.

§node_pool_low_watermark: usize

Bootstrap low-water mark.

§find_node_in_flight: usize

Current pending find_node transactions.

§find_node_in_flight_max: usize

Configured total find_node in-flight limit.

§find_node_effective_rate_per_sec: u32

Metadata-pressure-adjusted find_node budget per second.

§queries_new: u64

Queries sent to never-before-probed destinations.

§queries_revisit: u64

Queries sent to responsive revisit nodes.

§queries_bootstrap: u64

Queries sent to bootstrap endpoints.

§responses: u64

Replies matched to pending transactions.

§unmatched_responses: u64

Replies without a matching pending transaction.

§timeouts: u64

Pending transactions that expired.

§send_failures: u64

Outbound find_node send failures.

§crawl_events_dropped_response: u64

Response events dropped before reaching the actor.

§crawl_events_dropped_discovered: u64

Discovered-node events dropped before reaching the actor.

§udp_received: u64

UDP datagrams received before validation.

§udp_queue_full: u64

Valid datagrams dropped because every worker queue was full.

§udp_invalid: u64

Empty, oversized or non-bencoded UDP datagrams.

§udp_responses_rate_limited: u64

DHT replies rejected by final rate limits.

§udp_responses_priority_reserved: u64

Priority replies admitted by the ping/get_peers reserve.

Trait Implementations§

Source§

impl Clone for DhtRuntimeSnapshot

Source§

fn clone(&self) -> DhtRuntimeSnapshot

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for DhtRuntimeSnapshot

Source§

impl Debug for DhtRuntimeSnapshot

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for DhtRuntimeSnapshot

Source§

fn default() -> DhtRuntimeSnapshot

Returns the “default value” for a type. Read more
Source§

impl Eq for DhtRuntimeSnapshot

Source§

impl PartialEq for DhtRuntimeSnapshot

Source§

fn eq(&self, other: &DhtRuntimeSnapshot) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for DhtRuntimeSnapshot

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more