Enum glean::ErrorType[][src]

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

Implementations

impl ErrorType[src]

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

The error type's metric id

Trait Implementations

impl Debug for ErrorType[src]

impl PartialEq<ErrorType> for ErrorType[src]

impl StructuralPartialEq 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

impl RefUnwindSafe for ErrorType[src]

impl Send for ErrorType[src]

impl Sync for ErrorType[src]

impl Unpin for ErrorType[src]

impl UnwindSafe for ErrorType[src]

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.