Enum glean_core::Lifetime
source · #[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§
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§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Lifetime
impl<'de> Deserialize<'de> for Lifetime
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for Lifetime
impl Eq for Lifetime
impl StructuralEq for Lifetime
impl StructuralPartialEq for Lifetime
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, UT> HandleAlloc<UT> for Twhere
T: Send + Sync,
impl<T, UT> HandleAlloc<UT> for Twhere
T: Send + Sync,
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§fn clone_handle(handle: Handle) -> Handle
fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§fn consume_handle(handle: Handle) -> Arc<T>
fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>