pub struct BlockMetrics {
pub read_bytes: u64,
pub write_bytes: u64,
pub devices: Vec<BlockDeviceMetrics>,
}Expand description
Aggregate block metrics.
Fields§
§read_bytes: u64Successful guest logical bytes read from block devices.
write_bytes: u64Successful guest logical bytes written to block devices.
devices: Vec<BlockDeviceMetrics>Per-device block metrics.
Trait Implementations§
Source§impl Clone for BlockMetrics
impl Clone for BlockMetrics
Source§fn clone(&self) -> BlockMetrics
fn clone(&self) -> BlockMetrics
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 BlockMetrics
impl Debug for BlockMetrics
Source§impl Default for BlockMetrics
impl Default for BlockMetrics
Source§fn default() -> BlockMetrics
fn default() -> BlockMetrics
Returns the “default value” for a type. Read more
impl Eq for BlockMetrics
Source§impl PartialEq for BlockMetrics
impl PartialEq for BlockMetrics
Source§fn eq(&self, other: &BlockMetrics) -> bool
fn eq(&self, other: &BlockMetrics) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BlockMetrics
Auto Trait Implementations§
impl Freeze for BlockMetrics
impl RefUnwindSafe for BlockMetrics
impl Send for BlockMetrics
impl Sync for BlockMetrics
impl Unpin for BlockMetrics
impl UnsafeUnpin for BlockMetrics
impl UnwindSafe for BlockMetrics
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