Enum glean_core::Lifetime [−][src]
#[repr(i32)] pub enum Lifetime { Ping, Application, User, }
Expand description
The supported metrics’ lifetimes.
A metric’s lifetime determines when its stored data gets reset.
Variants
The metric is reset with each sent ping
The metric is reset on application restart
The metric is reset with each user profile
Implementations
Trait Implementations
impl Copy for Lifetime
[src]
impl Eq for Lifetime
[src]
impl StructuralEq for Lifetime
[src]
impl StructuralPartialEq for Lifetime
[src]
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more