#[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
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.read_bdt: ExchangeCountersRead-Broadcast-Distribution-Table exchanges.
write_bdt: ExchangeCountersWrite-Broadcast-Distribution-Table exchanges.
read_fdt: ExchangeCountersRead-Foreign-Device-Table exchanges.
delete_fdt_entry: ExchangeCountersDelete-Foreign-Device-Table-Entry exchanges.
register_foreign_device: ExchangeCountersRegister-Foreign-Device exchanges.
registration_attempts: u32Register-Foreign-Device attempts admitted, manual and automatic.
registrations_accepted: u32Of those, answered with success.
registrations_refused: u32Of those, answered with the Register-Foreign-Device NAK.
last_registration_attempt: Option<RegisterAttempt>The newest attempt, whenever it changed.
unmatched_responses: u32Well-formed responses that matched no live exchange.
late_responses: u32Of 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: u32Malformed responses, matched or not: refused by the codec or by
Policy::accept_table.
renewal_hints: u32Distribute-Broadcast-To-Network NAKs from the foreign device’s own
BBMD, taken as a sign it lost the registration: with
Retry::Backoff only.
lapses: u32Leases that ended with nothing newer proven.
broadcasts_held: u32Broadcasts held for the first registration attempt.
broadcasts_released: u32Held broadcasts released when that attempt succeeded or went unanswered.
broadcasts_discarded: u32Held broadcasts discarded when the BBMD refused that attempt.
broadcasts_hold_full: u32Broadcasts refused because the hold was full.
broadcasts_unregistered: u32Broadcasts sent while no lease was live.
Implementations§
Source§impl NodeCounters
impl NodeCounters
Sourcepub const fn exchange(&self, operation: Operation) -> &ExchangeCounters
pub const fn exchange(&self, operation: Operation) -> &ExchangeCounters
The counters of operation’s exchanges.