Skip to main content

DhtObservabilitySnapshot

Struct DhtObservabilitySnapshot 

Source
pub struct DhtObservabilitySnapshot {
Show 35 fields pub udp_rx_packets: u64, pub udp_rx_bytes: u64, pub udp_tx_packets: u64, pub udp_tx_bytes: u64, pub inbound_ping: u64, pub inbound_find_node: u64, pub inbound_get_peers: u64, pub inbound_announce_peer: u64, pub inbound_other: u64, pub response_normal: u64, pub response_fallback: u64, pub response_rate_limited: u64, pub response_send_failed: u64, pub announce_accepted: u64, pub announce_invalid_token: u64, pub announce_filtered: u64, pub node_admitted: u64, pub node_replaced: u64, pub node_dropped_duplicate: u64, pub node_dropped_rate_limited: u64, pub node_dropped_invalid: u64, pub metadata_bytes_downloaded: u64, pub metadata_failure_timeout: u64, pub metadata_failure_connect: u64, pub metadata_failure_no_extension: u64, pub metadata_failure_send: u64, pub metadata_failure_size_limit: u64, pub metadata_failure_sha1: u64, pub metadata_failure_parse: u64, pub metadata_failure_other: u64, pub peer_cache_timeout_hits: u64, pub peer_cache_connect_hits: u64, pub queue_wait_ms: FixedHistogramSnapshot, pub fetch_duration_ms: FixedHistogramSnapshot, pub metadata_size_bytes: FixedHistogramSnapshot,
}
Expand description

Transport-neutral counters and fixed-bucket histograms used by dashboards.

Fields§

§udp_rx_packets: u64

UDP datagrams received before validation.

§udp_rx_bytes: u64

UDP bytes received before validation.

§udp_tx_packets: u64

Successfully sent UDP query and response datagrams.

§udp_tx_bytes: u64

Successfully sent UDP query and response bytes.

§inbound_ping: u64

Inbound ping queries.

§inbound_find_node: u64

Inbound find_node queries.

§inbound_get_peers: u64

Inbound get_peers queries.

§inbound_announce_peer: u64

Inbound announce_peer queries.

§inbound_other: u64

Other or invalid inbound query names.

§response_normal: u64

Replies admitted by the regular response budget.

§response_fallback: u64

Priority ping/get_peers replies admitted by the reserve.

§response_rate_limited: u64

Replies rejected by final response limits.

§response_send_failed: u64

Admitted replies whose send_to failed.

§announce_accepted: u64

Valid, unfiltered announces with a usable Peer port.

§announce_invalid_token: u64

Announces with a missing or invalid token.

§announce_filtered: u64

Announces rejected by the application Hash filter.

§node_admitted: u64

New nodes admitted to the FIFO pool.

§node_replaced: u64

Full-pool replacements.

§node_dropped_duplicate: u64

Nodes rejected as queued or recently probed duplicates.

§node_dropped_rate_limited: u64

Nodes rejected by the replacement budget.

§node_dropped_invalid: u64

Nodes rejected because their endpoint is not usable.

§metadata_bytes_downloaded: u64

BEP-9 Metadata piece payload bytes received.

§metadata_failure_timeout: u64

Metadata Peer attempts reaching the end-to-end timeout.

§metadata_failure_connect: u64

Metadata Peer connection failures.

§metadata_failure_no_extension: u64

Peers without extension-protocol support.

§metadata_failure_send: u64

Extension handshake or piece-request send failures.

§metadata_failure_size_limit: u64

Metadata payloads exceeding the 10 MiB limit.

§metadata_failure_sha1: u64

Metadata payloads failing InfoHash SHA1 validation.

§metadata_failure_parse: u64

Validated payloads that could not be parsed as torrent info.

§metadata_failure_other: u64

Other receive, piece or worker failures.

§peer_cache_timeout_hits: u64

Failure-cache hits for previously timed-out Peers.

§peer_cache_connect_hits: u64

Failure-cache hits for previous connection failures.

§queue_wait_ms: FixedHistogramSnapshot

Queue wait observations in milliseconds.

§fetch_duration_ms: FixedHistogramSnapshot

End-to-end Peer attempt observations in milliseconds.

§metadata_size_bytes: FixedHistogramSnapshot

Complete bencoded info payload observations in bytes.

Trait Implementations§

Source§

impl Clone for DhtObservabilitySnapshot

Source§

fn clone(&self) -> DhtObservabilitySnapshot

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 Debug for DhtObservabilitySnapshot

Source§

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

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

impl Eq for DhtObservabilitySnapshot

Source§

impl PartialEq for DhtObservabilitySnapshot

Source§

fn eq(&self, other: &DhtObservabilitySnapshot) -> 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 DhtObservabilitySnapshot

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