[][src]Enum glean_ffi::Lifetime

#[repr(i32)]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

Implementations

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 Debug for Lifetime[src]

impl Default for Lifetime[src]

impl Eq for Lifetime[src]

impl PartialEq<Lifetime> for Lifetime[src]

impl StructuralEq for Lifetime[src]

impl StructuralPartialEq for Lifetime[src]

impl TryFrom<i32> for Lifetime[src]

type Error = Error

The type returned in the event of a conversion error.

Auto Trait Implementations

impl RefUnwindSafe for Lifetime

impl Send for Lifetime

impl Sync for Lifetime

impl Unpin for Lifetime

impl UnwindSafe for Lifetime

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> 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<V, T> VZip<V> for T where
    V: MultiLane<T>,