pub struct IoMetrics { /* private fields */ }Expand description
I/O load statistics shared by connections.
Metrics belong to a configuration in an IoMetricsGroup, see
IoConfig::metrics. Statistics are updated with relaxed atomics, a
snapshot is not a consistent cut across all fields.
The byte and write counters (bytes_read, bytes_written, eager_writes,
eager_writes_partial, scheduled_writes) are updated with a plain load
and store, not an atomic read-modify-write, so they must be updated by one
thread at a time. If the same group is installed on several threads with
IoMetricsGroup::set_current, concurrent updates can be lost and these
counters undercount. The other statistics stay exact.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for IoMetrics
impl RefUnwindSafe for IoMetrics
impl Send for IoMetrics
impl Sync for IoMetrics
impl Unpin for IoMetrics
impl UnsafeUnpin for IoMetrics
impl UnwindSafe for IoMetrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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