Skip to main content

ExchangeCounters

Struct ExchangeCounters 

Source
#[non_exhaustive]
pub struct ExchangeCounters { pub sent: u32, pub acknowledgements: u32, pub results: u32, pub last_result: Option<BvlcResultCode>, pub timeouts: u32, pub busy: u32, pub local_errors: u32, pub malformed_responses: u32, }
Expand description

One operation’s exchanges since the counters were last taken, manual and automatic alike. Counts saturate.

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.
§sent: u32

Requests the caller reported sent.

§acknowledgements: u32

Matched, accepted table ACKs.

§results: u32

Matched, well-formed BVLC-Results: success or the operation’s NAK.

§last_result: Option<BvlcResultCode>

The newest of those results’ codes.

§timeouts: u32

Sent requests whose response timeout passed unanswered.

§busy: u32

Requests refused because their exchange’s slot was taken.

§local_errors: u32

Requests whose send the caller reported failed.

§malformed_responses: u32

Malformed responses from the peer of a live exchange of this operation, counted against the first such exchange in slot order.

Trait Implementations§

Source§

impl Clone for ExchangeCounters

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 ExchangeCounters

Source§

impl Debug for ExchangeCounters

Source§

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

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

impl Default for ExchangeCounters

Source§

fn default() -> Self

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

impl Eq for ExchangeCounters

Source§

impl PartialEq for ExchangeCounters

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 ExchangeCounters

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.