#[non_exhaustive]pub struct IoCounts {
pub reads: u64,
pub writes: u64,
pub bytes_read: u64,
pub bytes_written: u64,
pub accepts: u64,
}Expand description
The IO operations a shard’s thread completed: see ShardStats::io.
With the io-stats feature only.
An operation is counted when the kernel completes it: a read or receive that returned bytes or the end of the stream, a write or send that took bytes, a connection accepted. A read served from the read-ahead is counted when the read-ahead’s own read completed, and a write taken into the write-behind when the write-behind’s own write did. Peeks and readiness probes are not counted. IO completed on a thread that runs no shard (the blocking pool’s own calls, a thread outside the runtime) is counted by no shard.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.reads: u64Reads and receives.
writes: u64Writes and sends.
bytes_read: u64Bytes the counted reads returned.
bytes_written: u64Bytes the counted writes took.
accepts: u64Connections accepted.
Trait Implementations§
impl Copy for IoCounts
impl Eq for IoCounts
impl StructuralPartialEq for IoCounts
Auto Trait Implementations§
impl Freeze for IoCounts
impl RefUnwindSafe for IoCounts
impl Send for IoCounts
impl Sync for IoCounts
impl Unpin for IoCounts
impl UnsafeUnpin for IoCounts
impl UnwindSafe for IoCounts
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