Enum glean_core::metrics::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
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]Deserialize this value from the given Serde deserializer. 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 MemoryUnitimpl Send for MemoryUnitimpl Sync for MemoryUnitimpl Unpin for MemoryUnitimpl UnwindSafe for MemoryUnitBlanket Implementations
Mutably borrows from an owned value. Read more