pub enum MetricType {
COUNTER = 0,
GAUGE = 1,
SUMMARY = 2,
UNTYPED = 3,
HISTOGRAM = 4,
}
Variants§
Trait Implementations§
Source§impl Clone for MetricType
impl Clone for MetricType
Source§fn clone(&self) -> MetricType
fn clone(&self) -> MetricType
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 MetricType
impl Debug for MetricType
Source§impl Hash for MetricType
impl Hash for MetricType
Source§impl PartialEq for MetricType
impl PartialEq for MetricType
Source§impl ProtobufEnum for MetricType
impl ProtobufEnum for MetricType
Source§fn from_i32(value: i32) -> Option<MetricType>
fn from_i32(value: i32) -> Option<MetricType>
Try to create an enum from
i32
value.
Return None
if value is unknown.Source§fn values() -> &'static [MetricType]
fn values() -> &'static [MetricType]
Get all enum values for enum type.
Source§fn enum_descriptor_static() -> &'static EnumDescriptor
fn enum_descriptor_static() -> &'static EnumDescriptor
Get enum descriptor by type.
Source§fn descriptor(&self) -> &'static EnumValueDescriptor
fn descriptor(&self) -> &'static EnumValueDescriptor
Get enum value descriptor.
Source§fn enum_descriptor(&self) -> &'static EnumDescriptor
fn enum_descriptor(&self) -> &'static EnumDescriptor
Get enum descriptor.
Source§impl ProtobufValue for MetricType
impl ProtobufValue for MetricType
Source§fn as_ref(&self) -> ReflectValueRef<'_>
fn as_ref(&self) -> ReflectValueRef<'_>
As ref
Source§fn is_non_zero(&self) -> bool
fn is_non_zero(&self) -> bool
Is value non-zero?
Source§fn as_ref_copy(&self) -> ReflectValueRef<'static>
fn as_ref_copy(&self) -> ReflectValueRef<'static>
impl Copy for MetricType
impl Eq for MetricType
impl StructuralPartialEq for MetricType
Auto Trait Implementations§
impl Freeze for MetricType
impl RefUnwindSafe for MetricType
impl Send for MetricType
impl Sync for MetricType
impl Unpin for MetricType
impl UnwindSafe for MetricType
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