pub struct MemoryMetrics {
pub total_bytes: u64,
pub available_bytes: Option<u64>,
pub used_bytes: Option<u64>,
pub host_resident_bytes: Option<u64>,
}Expand description
Memory metrics.
Fields§
§total_bytes: u64Configured guest physical memory.
available_bytes: Option<u64>Guest-available memory when reported by virtio-balloon stats.
used_bytes: Option<u64>Derived guest-used memory when available.
host_resident_bytes: Option<u64>Host-resident guest memory pages when the VMM can report them.
Trait Implementations§
Source§impl Clone for MemoryMetrics
impl Clone for MemoryMetrics
Source§fn clone(&self) -> MemoryMetrics
fn clone(&self) -> MemoryMetrics
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 MemoryMetrics
impl Debug for MemoryMetrics
Source§impl Default for MemoryMetrics
impl Default for MemoryMetrics
Source§fn default() -> MemoryMetrics
fn default() -> MemoryMetrics
Returns the “default value” for a type. Read more
impl Eq for MemoryMetrics
Source§impl PartialEq for MemoryMetrics
impl PartialEq for MemoryMetrics
Source§fn eq(&self, other: &MemoryMetrics) -> bool
fn eq(&self, other: &MemoryMetrics) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MemoryMetrics
Auto Trait Implementations§
impl Freeze for MemoryMetrics
impl RefUnwindSafe for MemoryMetrics
impl Send for MemoryMetrics
impl Sync for MemoryMetrics
impl Unpin for MemoryMetrics
impl UnsafeUnpin for MemoryMetrics
impl UnwindSafe for MemoryMetrics
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