pub struct CountingDevice { /* private fields */ }Expand description
Wraps a device and counts the reads passing through it.
The counters are atomic and the type is Sync, so a driver reading
from several threads is measured correctly rather than approximately.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for CountingDevice
impl !RefUnwindSafe for CountingDevice
impl !UnwindSafe for CountingDevice
impl Send for CountingDevice
impl Sync for CountingDevice
impl Unpin for CountingDevice
impl UnsafeUnpin for CountingDevice
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