pub struct IoSnapshot {
pub descriptor_bytes: u64,
pub manifest_bytes: u64,
pub index_bytes: u64,
pub seed_bytes: u64,
}Expand description
A point-in-time copy of IoCounters. Subtract two to attribute bytes to an
interval.
Fields§
§descriptor_bytes: u64Descriptor-blob bytes read.
manifest_bytes: u64Field-manifest bytes read.
index_bytes: u64Hierarchical-index-node bytes read.
seed_bytes: u64Seed-node bytes read.
Implementations§
Source§impl IoSnapshot
impl IoSnapshot
Sourcepub fn delta(&self, later: &IoSnapshot) -> IoSnapshot
pub fn delta(&self, later: &IoSnapshot) -> IoSnapshot
Bytes fetched in the interval (self, later], saturating at zero so a
counter reset can never underflow into a fabricated huge number.
Sourcepub fn plus(&self, other: &IoSnapshot) -> IoSnapshot
pub fn plus(&self, other: &IoSnapshot) -> IoSnapshot
Add other class-by-class.
Trait Implementations§
Source§impl Clone for IoSnapshot
impl Clone for IoSnapshot
impl Copy for IoSnapshot
Source§impl Debug for IoSnapshot
impl Debug for IoSnapshot
Source§impl Default for IoSnapshot
impl Default for IoSnapshot
impl Eq for IoSnapshot
Source§impl PartialEq for IoSnapshot
impl PartialEq for IoSnapshot
impl StructuralPartialEq for IoSnapshot
Auto Trait Implementations§
impl Freeze for IoSnapshot
impl RefUnwindSafe for IoSnapshot
impl Send for IoSnapshot
impl Sync for IoSnapshot
impl Unpin for IoSnapshot
impl UnsafeUnpin for IoSnapshot
impl UnwindSafe for IoSnapshot
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