pub struct IoStats {
pub writes: AtomicU64,
pub write_bytes: AtomicU64,
pub reads: AtomicU64,
}Expand description
One file’s I/O, counted. Per FILE: a global cursor interleaves the data file and the WAL, counting every alternation as a seek and summing both files’ bytes as one – both measured wrong before this existed.
Fields§
§writes: AtomicU64§write_bytes: AtomicU64§reads: AtomicU64Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for IoStats
impl RefUnwindSafe for IoStats
impl Send for IoStats
impl Sync for IoStats
impl Unpin for IoStats
impl UnsafeUnpin for IoStats
impl UnwindSafe for IoStats
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