pub struct IoLog { /* private fields */ }Expand description
A structured log of I/O events for tracing and debugging.
Implementations§
Source§impl IoLog
impl IoLog
Sourcepub fn events_of_kind(&self, kind: &IoEventKind) -> Vec<&IoEvent>
pub fn events_of_kind(&self, kind: &IoEventKind) -> Vec<&IoEvent>
Filter events by kind.
Sourcepub fn total_bytes_read(&self) -> usize
pub fn total_bytes_read(&self) -> usize
Total bytes read across all Read events.
Sourcepub fn total_bytes_written(&self) -> usize
pub fn total_bytes_written(&self) -> usize
Total bytes written across all Write events.
Sourcepub fn error_count(&self) -> usize
pub fn error_count(&self) -> usize
Number of errors.
Sourcepub fn has_overflowed(&self) -> bool
pub fn has_overflowed(&self) -> bool
Whether the log has overflowed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for IoLog
impl RefUnwindSafe for IoLog
impl Send for IoLog
impl Sync for IoLog
impl Unpin for IoLog
impl UnsafeUnpin for IoLog
impl UnwindSafe for IoLog
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