pub struct RuntimeMetrics { /* private fields */ }Implementations§
Source§impl RuntimeMetrics
impl RuntimeMetrics
pub fn new() -> Self
pub fn record_session_start(&self, mode: &str)
pub fn record_message_accepted(&self, mode: &str)
pub fn record_message_rejected(&self, mode: &str)
pub fn record_session_resolved(&self, mode: &str)
pub fn record_session_expired(&self, mode: &str)
pub fn record_session_cancelled(&self, mode: &str)
pub fn record_session_suspended(&self, mode: &str)
pub fn record_session_resumed(&self, mode: &str)
pub fn record_commitment_accepted(&self, mode: &str)
pub fn record_commitment_rejected(&self, mode: &str)
pub fn record_replay_mismatch(&self, count: u64)
pub fn replay_mismatches(&self) -> u64
pub fn snapshot(&self) -> Vec<(String, MetricsSnapshot)>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for RuntimeMetrics
impl RefUnwindSafe for RuntimeMetrics
impl Send for RuntimeMetrics
impl Sync for RuntimeMetrics
impl Unpin for RuntimeMetrics
impl UnsafeUnpin for RuntimeMetrics
impl UnwindSafe for RuntimeMetrics
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request