pub struct MemoryData {
pub total_bytes: u64,
pub used_bytes: u64,
pub available_bytes: u64,
pub usage_percent: f32,
pub swap_total_bytes: u64,
pub swap_used_bytes: u64,
pub swap_percent: f32,
}Expand description
Memory metrics snapshot.
Fields§
§total_bytes: u64Total physical memory in bytes.
used_bytes: u64Used memory in bytes.
available_bytes: u64Available memory in bytes.
usage_percent: f32Memory usage percentage (0.0 - 100.0).
swap_total_bytes: u64Total swap space in bytes.
swap_used_bytes: u64Used swap in bytes.
swap_percent: f32Swap usage percentage (0.0 - 100.0).
Trait Implementations§
Source§impl Clone for MemoryData
impl Clone for MemoryData
Source§fn clone(&self) -> MemoryData
fn clone(&self) -> MemoryData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryData
impl Debug for MemoryData
Source§impl Default for MemoryData
impl Default for MemoryData
Source§fn default() -> MemoryData
fn default() -> MemoryData
Returns the “default value” for a type. Read more
Source§impl PartialEq for MemoryData
impl PartialEq for MemoryData
Source§fn eq(&self, other: &MemoryData) -> bool
fn eq(&self, other: &MemoryData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MemoryData
Auto Trait Implementations§
impl Freeze for MemoryData
impl RefUnwindSafe for MemoryData
impl Send for MemoryData
impl Sync for MemoryData
impl Unpin for MemoryData
impl UnsafeUnpin for MemoryData
impl UnwindSafe for MemoryData
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