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 actor_tick_main: Counter,
pub actor_tick_rx: Counter,
pub actor_tick_endpoint: Counter,
pub actor_tick_dialer: Counter,
pub actor_tick_dialer_success: Counter,
pub actor_tick_dialer_failure: Counter,
pub actor_tick_in_event_rx: Counter,
pub actor_tick_timers: Counter,
}
Expand description
Enum of metrics for the module
Fields§
§msgs_ctrl_sent: Counter
Number of control messages sent
msgs_ctrl_recv: Counter
Number of control messages received
msgs_data_sent: Counter
Number of data messages sent
msgs_data_recv: Counter
Number of data messages received
msgs_data_sent_size: Counter
Total size of all data messages sent
msgs_data_recv_size: Counter
Total size of all data messages received
msgs_ctrl_sent_size: Counter
Total size of all control messages sent
msgs_ctrl_recv_size: Counter
Total size of all control messages received
neighbor_up: Counter
Number of times we connected to a peer
neighbor_down: Counter
Number of times we disconnected from a peer
actor_tick_main: Counter
Number of times the main actor loop ticked
actor_tick_rx: Counter
Number of times the actor ticked for a message received
actor_tick_endpoint: Counter
Number of times the actor ticked for an endpoint event
actor_tick_dialer: Counter
Number of times the actor ticked for a dialer event
actor_tick_dialer_success: Counter
Number of times the actor ticked for a successful dialer event
actor_tick_dialer_failure: Counter
Number of times the actor ticked for a failed dialer event
actor_tick_in_event_rx: Counter
Number of times the actor ticked for an incoming event
actor_tick_timers: Counter
Number of times the actor ticked for a timer event
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§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
§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
self
as dyn Iterable