Enum glean_ffi::MemoryUnit
source · [−]#[repr(i32)]
pub enum MemoryUnit {
Byte,
Kilobyte,
Megabyte,
Gigabyte,
}
Expand description
Different resolutions supported by the memory related metric types (e.g. MemoryDistributionMetric).
Variants
Byte
1 byte
Kilobyte
2^10 bytes
Megabyte
2^20 bytes
Gigabyte
2^30 bytes
Implementations
Trait Implementations
sourceimpl Clone for MemoryUnit
impl Clone for MemoryUnit
sourcefn clone(&self) -> MemoryUnit
fn clone(&self) -> MemoryUnit
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MemoryUnit
impl Debug for MemoryUnit
sourceimpl<'de> Deserialize<'de> for MemoryUnit
impl<'de> Deserialize<'de> for MemoryUnit
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<MemoryUnit, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
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
sourceimpl Serialize for MemoryUnit
impl Serialize for MemoryUnit
sourcefn 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
sourceimpl TryFrom<i32> for MemoryUnit
impl TryFrom<i32> for MemoryUnit
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).
impl Copy for MemoryUnit
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> EncodableKey for T where
T: Serialize,
impl<T> EncodableKey for T where
T: Serialize,
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more