Enum glean_core::Lifetime
source · #[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§
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
source§impl PartialEq for Lifetime
impl PartialEq for Lifetime
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§
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
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
Create a new handle for an Arc value Read more
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
Clone a handle Read more
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Consume a handle, getting back the initial
Arc<>
Read moresource§impl<V> ObjectSerialize for Vwhere
V: Serialize + for<'de> Deserialize<'de>,
impl<V> ObjectSerialize for Vwhere
V: Serialize + for<'de> Deserialize<'de>,
source§fn from_str(obj: &str) -> Result<V, ObjectError>
fn from_str(obj: &str) -> Result<V, ObjectError>
Deserialize the object from its JSON representation. Read more
source§fn into_serialized_object(self) -> Result<Value, ObjectError>
fn into_serialized_object(self) -> Result<Value, ObjectError>
Serialize this object into a JSON string.