pub struct IoCounters { /* private fields */ }Expand description
A shared set of physical-read byte counters, one per class.
Cloning shares the same counters; use IoCounters::handle to make the
sharing explicit.
Implementations§
Source§impl IoCounters
impl IoCounters
Sourcepub fn add_descriptor(&self, bytes: u64)
pub fn add_descriptor(&self, bytes: u64)
Note a descriptor blob read of bytes bytes.
Sourcepub fn add_manifest(&self, bytes: u64)
pub fn add_manifest(&self, bytes: u64)
Note a field manifest read of bytes bytes.
Sourcepub fn descriptor_reads(&self) -> u64
pub fn descriptor_reads(&self) -> u64
Number of descriptor blobs fetched so far (a read count, not bytes).
Sourcepub fn snapshot(&self) -> IoSnapshot
pub fn snapshot(&self) -> IoSnapshot
A consistent snapshot of every counter.
Trait Implementations§
Source§impl Clone for IoCounters
impl Clone for IoCounters
Source§impl Debug for IoCounters
impl Debug for IoCounters
Auto Trait Implementations§
impl !RefUnwindSafe for IoCounters
impl !Send for IoCounters
impl !Sync for IoCounters
impl !UnwindSafe for IoCounters
impl Freeze for IoCounters
impl Unpin for IoCounters
impl UnsafeUnpin for IoCounters
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