[][src]Enum glean_core::ErrorType

pub enum ErrorType {
    InvalidValue,
    InvalidLabel,
    InvalidState,
    InvalidOverflow,
}

The possible error types for metric recording. Note: the cases in this enum must be kept in sync with the ones in the platform-specific code (e.g. ErrorType.kt) and with the metrics in the registry files.

Variants

InvalidValue

For when the value to be recorded does not match the metric-specific restrictions

InvalidLabel

For when the label of a labeled metric does not match the restrictions

InvalidState

For when the metric caught an invalid state while recording

InvalidOverflow

For when the value to be recorded overflows the metric-specific upper range

Methods

impl ErrorType[src]

pub fn as_str(&self) -> &'static str[src]

The error type's metric name

Trait Implementations

impl Debug for ErrorType[src]

impl TryFrom<i32> for ErrorType[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,