Skip to main content

NodeCounters

Struct NodeCounters 

Source
#[non_exhaustive]
pub struct NodeCounters {
Show 20 fields pub read_bdt: ExchangeCounters, pub write_bdt: ExchangeCounters, pub read_fdt: ExchangeCounters, pub delete_fdt_entry: ExchangeCounters, pub register_foreign_device: ExchangeCounters, pub registration_attempts: u32, pub registrations_accepted: u32, pub registrations_refused: u32, pub last_registration_attempt: Option<RegisterAttempt>, pub unmatched_responses: u32, pub late_responses: u32, pub last_unmatched_result: Option<BvlcResultCode>, pub malformed_responses: u32, pub renewal_hints: u32, pub lapses: u32, pub broadcasts_held: u32, pub broadcasts_released: u32, pub broadcasts_discarded: u32, pub broadcasts_hold_full: u32, pub broadcasts_unregistered: u32,
}
Expand description

Everything a node counts, since the counters were last taken. Counts saturate; the last_ fields hold the newest value seen since, if any.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§read_bdt: ExchangeCounters

Read-Broadcast-Distribution-Table exchanges.

§write_bdt: ExchangeCounters

Write-Broadcast-Distribution-Table exchanges.

§read_fdt: ExchangeCounters

Read-Foreign-Device-Table exchanges.

§delete_fdt_entry: ExchangeCounters

Delete-Foreign-Device-Table-Entry exchanges.

§register_foreign_device: ExchangeCounters

Register-Foreign-Device exchanges.

§registration_attempts: u32

Register-Foreign-Device attempts admitted, manual and automatic.

§registrations_accepted: u32

Of those, answered with success.

§registrations_refused: u32

Of those, answered with the Register-Foreign-Device NAK.

§last_registration_attempt: Option<RegisterAttempt>

The newest attempt, whenever it changed.

§unmatched_responses: u32

Well-formed responses that matched no live exchange.

§late_responses: u32

Of those, the ones within one response timeout of an exchange they fit ending.

§last_unmatched_result: Option<BvlcResultCode>

The newest unmatched BVLC-Result’s code.

§malformed_responses: u32

Malformed responses, matched or not: refused by the codec or by Policy::accept_table.

§renewal_hints: u32

Distribute-Broadcast-To-Network NAKs from the foreign device’s own BBMD, taken as a sign it lost the registration: with Retry::Backoff only.

§lapses: u32

Leases that ended with nothing newer proven.

§broadcasts_held: u32

Broadcasts held for the first registration attempt.

§broadcasts_released: u32

Held broadcasts released when that attempt succeeded or went unanswered.

§broadcasts_discarded: u32

Held broadcasts discarded when the BBMD refused that attempt.

§broadcasts_hold_full: u32

Broadcasts refused because the hold was full.

§broadcasts_unregistered: u32

Broadcasts sent while no lease was live.

Implementations§

Source§

impl NodeCounters

Source

pub const fn exchange(&self, operation: Operation) -> &ExchangeCounters

The counters of operation’s exchanges.

Trait Implementations§

Source§

impl Clone for NodeCounters

Source§

fn clone(&self) -> Self

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 NodeCounters

Source§

impl Debug for NodeCounters

Source§

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

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

impl Default for NodeCounters

Source§

fn default() -> Self

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

impl Eq for NodeCounters

Source§

impl PartialEq for NodeCounters

Source§

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

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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

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.