#[repr(i32)]pub enum Lifetime {
Ping = 0,
Application = 1,
User = 2,
}
Expand description
The supported metrics’ lifetimes.
A metric’s lifetime determines when its stored data gets reset.
Variants§
Ping = 0
The metric is reset with each sent ping
Application = 1
The metric is reset on application restart
User = 2
The metric is reset with each user profile
Implementations§
Trait Implementations§
impl Copy for Lifetime
impl Eq for Lifetime
impl StructuralPartialEq for Lifetime
Auto Trait Implementations§
impl Freeze for Lifetime
impl RefUnwindSafe for Lifetime
impl Send for Lifetime
impl Sync for Lifetime
impl Unpin for Lifetime
impl UnwindSafe for Lifetime
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more