#[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<UT> ConvertError<UT> for Lifetime
impl<UT> ConvertError<UT> for Lifetime
Source§impl<'de> Deserialize<'de> for Lifetime
impl<'de> Deserialize<'de> for Lifetime
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Lifetime, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Lifetime, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<UT> FfiConverter<UT> for Lifetime
impl<UT> FfiConverter<UT> for Lifetime
Source§const TYPE_ID_META: MetadataBuffer
const TYPE_ID_META: MetadataBuffer
Type ID metadata, serialized into a MetadataBuffer.
Source§type FfiType = RustBuffer
type FfiType = RustBuffer
The low-level type used for passing values of this type over the FFI. Read more
Source§fn lower(v: Lifetime) -> RustBuffer
fn lower(v: Lifetime) -> RustBuffer
Lower a rust value of the target type, into an FFI value of type Self::FfiType. Read more
Source§fn try_lift(buf: RustBuffer) -> Result<Lifetime, Error>
fn try_lift(buf: RustBuffer) -> Result<Lifetime, Error>
Lift a rust value of the target type, from an FFI value of type Self::FfiType. Read more
Source§impl<UT> LiftReturn<UT> for Lifetime
impl<UT> LiftReturn<UT> for Lifetime
Source§fn try_lift_successful_return(
v: <Lifetime as LiftReturn<UT>>::ReturnType,
) -> Result<Lifetime, Error>
fn try_lift_successful_return( v: <Lifetime as LiftReturn<UT>>::ReturnType, ) -> Result<Lifetime, Error>
Lift a successfully returned value from a trait interface
Source§fn lift_foreign_return(
ffi_return: Self::ReturnType,
call_status: RustCallStatus,
) -> Self
fn lift_foreign_return( ffi_return: Self::ReturnType, call_status: RustCallStatus, ) -> Self
Lift a foreign returned value from a trait interface Read more
Source§fn lift_error(_buf: RustBuffer) -> Self
fn lift_error(_buf: RustBuffer) -> Self
Lift a Rust value for a callback interface method error result Read more
Source§fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
fn handle_callback_unexpected_error(e: UnexpectedUniFFICallbackError) -> Self
Lift a Rust value for an unexpected callback interface error Read more
Source§impl<UT> LowerError<UT> for Lifetime
impl<UT> LowerError<UT> for Lifetime
Source§fn lower_error(obj: Lifetime) -> RustBuffer
fn lower_error(obj: Lifetime) -> RustBuffer
Lower this value for scaffolding function return Read more
Source§impl<UT> LowerReturn<UT> for Lifetime
impl<UT> LowerReturn<UT> for Lifetime
Source§type ReturnType = <Lifetime as Lower<UT>>::FfiType
type ReturnType = <Lifetime as Lower<UT>>::FfiType
The type that should be returned by scaffolding functions for this type. Read more
Source§fn lower_return(
v: Lifetime,
) -> Result<<Lifetime as LowerReturn<UT>>::ReturnType, RustCallError>
fn lower_return( v: Lifetime, ) -> Result<<Lifetime as LowerReturn<UT>>::ReturnType, RustCallError>
Lower the return value from an scaffolding call Read more
Source§fn handle_failed_lift(
error: LiftArgsError,
) -> Result<Self::ReturnType, RustCallError>
fn handle_failed_lift( error: LiftArgsError, ) -> Result<Self::ReturnType, RustCallError>
Lower the return value for failed argument lifts Read more
Source§impl MallocSizeOf for Lifetime
impl MallocSizeOf for Lifetime
Source§fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but
not the space taken up by the value itself.
Source§impl Serialize for Lifetime
impl Serialize for Lifetime
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
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§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)Source§impl<T> EncodableKey for Twhere
T: Serialize,
impl<T> EncodableKey for Twhere
T: Serialize,
Source§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
Source§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.