pub struct HostMemoryMetrics {
pub total_physical_bytes: u64,
pub available_physical_bytes: u64,
pub total_virtual_bytes: u64,
pub available_virtual_bytes: u64,
pub memory_load_percent: u32,
}Expand description
Point-in-time memory metrics for the host.
Fields§
§total_physical_bytes: u64Total visible physical memory in bytes.
available_physical_bytes: u64Available physical memory in bytes.
total_virtual_bytes: u64Total virtual memory available to the process in bytes.
available_virtual_bytes: u64Available virtual memory in bytes.
memory_load_percent: u32Percentage of physical memory in use.
Trait Implementations§
Source§impl Clone for HostMemoryMetrics
impl Clone for HostMemoryMetrics
Source§fn clone(&self) -> HostMemoryMetrics
fn clone(&self) -> HostMemoryMetrics
Returns a duplicate of the value. Read more
1.0.0 · 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 HostMemoryMetrics
impl Debug for HostMemoryMetrics
Source§impl Default for HostMemoryMetrics
impl Default for HostMemoryMetrics
Source§fn default() -> HostMemoryMetrics
fn default() -> HostMemoryMetrics
Returns the “default value” for a type. Read more
impl Copy for HostMemoryMetrics
Auto Trait Implementations§
impl Freeze for HostMemoryMetrics
impl RefUnwindSafe for HostMemoryMetrics
impl Send for HostMemoryMetrics
impl Sync for HostMemoryMetrics
impl Unpin for HostMemoryMetrics
impl UnsafeUnpin for HostMemoryMetrics
impl UnwindSafe for HostMemoryMetrics
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