Enum glean_ffi::MemoryUnit [−][src]
#[repr(i32)]
pub enum MemoryUnit {
Byte,
Kilobyte,
Megabyte,
Gigabyte,
}
Expand description
Different resolutions supported by the memory related metric types (e.g. MemoryDistributionMetric).
Variants
1 byte
2^10 bytes
2^20 bytes
2^30 bytes
Implementations
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<MemoryUnit, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<MemoryUnit, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub 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
Trait implementation for converting an integer value
to a MemoryUnit
. This is used in the FFI code. Please
note that values should match the ordering of the platform
specific side of things (e.g. Kotlin implementation).
Auto Trait Implementations
impl RefUnwindSafe for MemoryUnit
impl Send for MemoryUnit
impl Sync for MemoryUnit
impl Unpin for MemoryUnit
impl UnwindSafe for MemoryUnit
Blanket Implementations
Mutably borrows from an owned value. Read more