Enum rings_core::measure::MeasureCounter
source · pub enum MeasureCounter {
Sent,
FailedToSend,
Received,
FailedToReceive,
Connect,
Disconnected,
}Expand description
The tag of counters in measure.
Variants§
Sent
The number of sent messages.
FailedToSend
The number of failed to sent messages.
Received
The number of received messages.
FailedToReceive
The number of failed to receive messages.
Connect
The number of connected.
Disconnected
The number of disconnect.
Trait Implementations§
source§impl Clone for MeasureCounter
impl Clone for MeasureCounter
source§fn clone(&self) -> MeasureCounter
fn clone(&self) -> MeasureCounter
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for MeasureCounter
impl Debug for MeasureCounter
source§impl Hash for MeasureCounter
impl Hash for MeasureCounter
source§impl PartialEq for MeasureCounter
impl PartialEq for MeasureCounter
source§fn eq(&self, other: &MeasureCounter) -> bool
fn eq(&self, other: &MeasureCounter) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for MeasureCounter
impl Eq for MeasureCounter
impl StructuralPartialEq for MeasureCounter
Auto Trait Implementations§
impl Freeze for MeasureCounter
impl RefUnwindSafe for MeasureCounter
impl Send for MeasureCounter
impl Sync for MeasureCounter
impl Unpin for MeasureCounter
impl UnwindSafe for MeasureCounter
Blanket Implementations§
source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
source§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
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
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 moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
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