pub struct Metrics {Show 18 fields
pub msgs_ctrl_sent: Counter,
pub msgs_ctrl_recv: Counter,
pub msgs_data_sent: Counter,
pub msgs_data_recv: Counter,
pub msgs_data_sent_size: Counter,
pub msgs_data_recv_size: Counter,
pub msgs_ctrl_sent_size: Counter,
pub msgs_ctrl_recv_size: Counter,
pub neighbor_up: Counter,
pub neighbor_down: Counter,
pub msgs_broadcast_swarm: Counter,
pub msgs_broadcast_neighbors: Counter,
pub topics_joined: Counter,
pub topics_quit: Counter,
pub peers_dialed_success: Counter,
pub peers_dialed_failure: Counter,
pub peers_accepted: Counter,
pub actor_tick_main: Counter,
}Expand description
Enum of metrics for the module
Fields§
§msgs_ctrl_sent: CounterNumber of control messages sent
msgs_ctrl_recv: CounterNumber of control messages received
msgs_data_sent: CounterNumber of data messages sent
msgs_data_recv: CounterNumber of data messages received
msgs_data_sent_size: CounterTotal size of all data messages sent
msgs_data_recv_size: CounterTotal size of all data messages received
msgs_ctrl_sent_size: CounterTotal size of all control messages sent
msgs_ctrl_recv_size: CounterTotal size of all control messages received
neighbor_up: CounterNumber of times we connected to a peer
neighbor_down: CounterNumber of times we disconnected from a peer
msgs_broadcast_swarm: CounterNumber of messages we broadcasted to all nodes
msgs_broadcast_neighbors: CounterNumber of messages we broadcasted to direct neighbors
topics_joined: CounterNumber of topcis we joined.
topics_quit: CounterNumber of topcis we left.
peers_dialed_success: CounterNumber of times we successfully dialed a remote node.
peers_dialed_failure: CounterNumber of times we failed to dial a remote node.
peers_accepted: CounterNumber of times we accepted a connection from a remote node.
actor_tick_main: CounterNumber of times the main actor loop ticked
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Metrics
impl RefUnwindSafe for Metrics
impl Send for Metrics
impl Sync for Metrics
impl Unpin for Metrics
impl UnwindSafe for Metrics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CompatExt for T
impl<T> CompatExt for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> IntoIterable for Twhere
T: Iterable,
impl<T> IntoIterable for Twhere
T: Iterable,
§fn as_iterable(&self) -> &dyn Iterable
fn as_iterable(&self) -> &dyn Iterable
Returns
self as dyn Iterable§fn field_iter(&self) -> FieldIter<'_>
fn field_iter(&self) -> FieldIter<'_>
Returns an iterator over the fields of the struct.