pub struct Statistics(/* private fields */);
Available on crate feature
statistics
only.Expand description
IO statistic information.
Implementations§
Source§impl Statistics
impl Statistics
Sourcepub fn total_bytes(&self) -> u64
pub fn total_bytes(&self) -> u64
Returns the number of bytes transferred through this reader/writer.
Sourcepub fn total_items(&self) -> u64
pub fn total_items(&self) -> u64
Returns the total number of items transferred though this reader/writer.
An item is a logical boundary that is marked by the framing layer. Essentially,
an item is one call to send
/recv
.
Trait Implementations§
Source§impl Clone for Statistics
impl Clone for Statistics
Source§fn clone(&self) -> Statistics
fn clone(&self) -> Statistics
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for Statistics
impl Debug for Statistics
Source§impl Hash for Statistics
impl Hash for Statistics
Source§impl PartialEq for Statistics
impl PartialEq for Statistics
impl Eq for Statistics
impl StructuralPartialEq for Statistics
Auto Trait Implementations§
impl Freeze for Statistics
impl RefUnwindSafe for Statistics
impl Send for Statistics
impl Sync for Statistics
impl Unpin for Statistics
impl UnwindSafe for Statistics
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