Struct NodeMetrics

Source
pub struct NodeMetrics { /* private fields */ }
Expand description

Holds metrics related to a node.

Implementations§

Source§

impl NodeMetrics

Source

pub fn new() -> Self

Creates a new NodeMetrics.

Source§

impl NodeMetrics

Source

pub fn invalid_packets(&self) -> u64

Returns the number of invalid packets of the NodeMetrics.

Source

pub fn invalid_packets_inc(&self) -> u64

Increments the number of invalid packets of the NodeMetrics.

Source

pub fn milestone_requests_received(&self) -> u64

Returns the number of received milestone requests of the NodeMetrics.

Source

pub fn milestone_requests_received_inc(&self) -> u64

Increments the number of received milestone requests of the NodeMetrics.

Source

pub fn messages_received(&self) -> u64

Returns the number of received messages of the NodeMetrics.

Source

pub fn messages_received_inc(&self) -> u64

Increments the number of received messages of the NodeMetrics.

Source

pub fn message_requests_received(&self) -> u64

Returns the number of received message requests of the NodeMetrics.

Source

pub fn message_requests_received_inc(&self) -> u64

Increments the number of received message requests of the NodeMetrics.

Source

pub fn heartbeats_received(&self) -> u64

Returns the number of received heartbeats of the NodeMetrics.

Source

pub fn heartbeats_received_inc(&self) -> u64

Increments the number of received heartbeats of the NodeMetrics.

Source

pub fn milestone_requests_sent(&self) -> u64

Returns the number of sent milestone requests of the NodeMetrics.

Source

pub fn milestone_requests_sent_inc(&self) -> u64

Increments the number of sent milestone requests of the NodeMetrics.

Source

pub fn messages_sent(&self) -> u64

Returns the number of sent messages of the NodeMetrics.

Source

pub fn messages_sent_inc(&self) -> u64

Increments the number of sent messages of the NodeMetrics.

Source

pub fn message_requests_sent(&self) -> u64

Returns the number of sent message requests of the NodeMetrics.

Source

pub fn message_requests_sent_inc(&self) -> u64

Increments the number of sent message requests of the NodeMetrics.

Source

pub fn heartbeats_sent(&self) -> u64

Returns the number of sent heartbeats of the NodeMetrics.

Source

pub fn heartbeats_sent_inc(&self) -> u64

Increments the number of sent heartbeats of the NodeMetrics.

Source

pub fn invalid_messages(&self) -> u64

Returns the number of invalid messages of the NodeMetrics.

Source

pub fn invalid_messages_inc(&self) -> u64

Increments the number of invalid messages of the NodeMetrics.

Source

pub fn new_messages(&self) -> u64

Returns the number of new messages of the NodeMetrics.

Source

pub fn new_messages_inc(&self) -> u64

Increments the number of new messages of the NodeMetrics.

Source

pub fn known_messages(&self) -> u64

Returns the number of known messages of the NodeMetrics.

Source

pub fn known_messages_inc(&self) -> u64

Increments the number of known messages of the NodeMetrics.

Source

pub fn messages_average_latency(&self) -> u64

Returns the average messages latency of the NodeMetrics.

Source

pub fn messages_average_latency_set(&self, val: u64)

Sets the average messages latency of the NodeMetrics

Source

pub fn referenced_messages(&self) -> u64

Returns the number of referenced messages of the NodeMetrics.

Source

pub fn referenced_messages_inc(&self, value: u64) -> u64

Increments the number of referenced messages of the NodeMetrics.

Source

pub fn excluded_no_transaction_messages(&self) -> u64

Returns the number of excluded messages - because without transaction - of the NodeMetrics.

Source

pub fn excluded_no_transaction_messages_inc(&self, value: u64) -> u64

Increments the number of excluded messages - because without transaction - of the NodeMetrics.

Source

pub fn excluded_conflicting_messages(&self) -> u64

Returns the number of excluded messages - because conflicting - of the NodeMetrics.

Source

pub fn excluded_conflicting_messages_inc(&self, value: u64) -> u64

Increments the number of excluded messages - because conflicting - of the NodeMetrics.

Source

pub fn included_messages(&self) -> u64

Returns the number of included messages of the NodeMetrics.

Source

pub fn included_messages_inc(&self, value: u64) -> u64

Increments the number of included messages of the NodeMetrics.

Source

pub fn created_outputs(&self) -> u64

Returns the number of created outputs of the NodeMetrics.

Source

pub fn created_outputs_inc(&self, value: u64) -> u64

Increments the number of created outputs of the NodeMetrics.

Source

pub fn consumed_outputs(&self) -> u64

Returns the number of consumed outputs of the NodeMetrics.

Source

pub fn consumed_outputs_inc(&self, value: u64) -> u64

Increments the number of consumed outputs of the NodeMetrics.

Source

pub fn receipts(&self) -> u64

Returns the number of receipts of the NodeMetrics.

Source

pub fn receipts_inc(&self, value: u64) -> u64

Increments the number of receipts of the NodeMetrics.

Source

pub fn transaction_payloads(&self) -> u64

Returns the number of transaction payloads of the NodeMetrics.

Source

pub fn transaction_payloads_inc(&self, value: u64) -> u64

Increments the number of transaction payloads of the NodeMetrics.

Source

pub fn milestone_payloads(&self) -> u64

Returns the number of milestone payloads of the NodeMetrics.

Source

pub fn milestone_payloads_inc(&self, value: u64) -> u64

Increments the number of milestone payloads of the NodeMetrics.

Source

pub fn indexation_payloads(&self) -> u64

Returns the number of indexation payloads of the NodeMetrics.

Source

pub fn indexation_payload_inc(&self, value: u64) -> u64

Increments the number of indexation payloads of the NodeMetrics.

Source

pub fn snapshots(&self) -> u64

Returns the number of snapshots of the NodeMetrics.

Source

pub fn snapshots_inc(&self, value: u64) -> u64

Increments the number of snapshots of the NodeMetrics.

Source

pub fn prunings(&self) -> u64

Returns the number of prunings of the NodeMetrics.

Source

pub fn prunings_inc(&self, value: u64) -> u64

Increments the number of prunings of the NodeMetrics.

Trait Implementations§

Source§

impl Debug for NodeMetrics

Source§

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

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

impl Default for NodeMetrics

Source§

fn default() -> NodeMetrics

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

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

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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> ErasedDestructor for T
where T: 'static,

Source§

impl<T> MaybeSendSync for T