[][src]Enum glean_core::Lifetime

pub enum Lifetime {
    Ping,
    Application,
    User,
}

The supported metrics' lifetimes.

A metric's lifetime determines when its stored data gets reset.

Variants

Ping

The metric is reset with each sent ping

Application

The metric is reset on application restart

User

The metric is reset with each user profile

Methods

impl Lifetime[src]

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

String representation of the lifetime.

Trait Implementations

impl Clone for Lifetime[src]

impl Copy for Lifetime[src]

impl Default for Lifetime[src]

impl Eq for Lifetime[src]

impl PartialEq<Lifetime> for Lifetime[src]

impl Debug for Lifetime[src]

impl TryFrom<i32> for Lifetime[src]

type Error = Error

The type returned in the event of a conversion error.

impl StructuralPartialEq for Lifetime[src]

impl StructuralEq for Lifetime[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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

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